Files
sitemap-plugin/spec/Model/ChangeFrequencySpec.php
Joachim Løvgaard 673fcd6b5b Refactoring models (#87)
* Refactoring models:
- Renaming (also of associated factories)
- Added constructors
- Added UrlAlternative model together with a factory
-adding upgrade info regarding models
2019-07-01 15:46:13 +02:00

53 lines
1.3 KiB
PHP

<?php
declare(strict_types=1);
namespace spec\SitemapPlugin\Model;
use PhpSpec\ObjectBehavior;
final class ChangeFrequencySpec extends ObjectBehavior
{
function it_initialize_with_always_value(): void
{
$this->beConstructedThrough('always');
$this->__toString()->shouldReturn('always');
}
function it_initialize_with_hourly_value(): void
{
$this->beConstructedThrough('hourly');
$this->__toString()->shouldReturn('hourly');
}
function it_initialize_with_daily_value(): void
{
$this->beConstructedThrough('daily');
$this->__toString()->shouldReturn('daily');
}
function it_initialize_with_weekly_value(): void
{
$this->beConstructedThrough('weekly');
$this->__toString()->shouldReturn('weekly');
}
function it_initialize_with_monthly_value(): void
{
$this->beConstructedThrough('monthly');
$this->__toString()->shouldReturn('monthly');
}
function it_initialize_with_yearly_value(): void
{
$this->beConstructedThrough('yearly');
$this->__toString()->shouldReturn('yearly');
}
function it_initialize_with_never_value(): void
{
$this->beConstructedThrough('never');
$this->__toString()->shouldReturn('never');
}
}