mirror of
https://github.com/jbcr/sitemap-plugin.git
synced 2026-03-24 17:02:19 +01:00
* Refactoring models: - Renaming (also of associated factories) - Added constructors - Added UrlAlternative model together with a factory -adding upgrade info regarding models
53 lines
1.3 KiB
PHP
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');
|
|
}
|
|
}
|