| @@ 44-52 (lines=9) @@ | ||
| 41 | static::assertSame('baz', $definition->getSetting('foo', 'baz')); |
|
| 42 | } |
|
| 43 | ||
| 44 | public function testTtl(): void |
|
| 45 | { |
|
| 46 | $definition = new SitemapDefinition('acme.sitemap', [ |
|
| 47 | 'use_cache' => true, |
|
| 48 | 'ttl' => 90, |
|
| 49 | ]); |
|
| 50 | ||
| 51 | static::assertSame(90, $definition->getTtl()); |
|
| 52 | } |
|
| 53 | ||
| 54 | public function testTtlWithoutCache(): void |
|
| 55 | { |
|
| @@ 54-61 (lines=8) @@ | ||
| 51 | static::assertSame(90, $definition->getTtl()); |
|
| 52 | } |
|
| 53 | ||
| 54 | public function testTtlWithoutCache(): void |
|
| 55 | { |
|
| 56 | $definition = new SitemapDefinition('acme.sitemap', [ |
|
| 57 | 'use_cache' => false, |
|
| 58 | ]); |
|
| 59 | ||
| 60 | static::assertSame(0, $definition->getTtl()); |
|
| 61 | } |
|
| 62 | ||
| 63 | public function testTtlDefault(): void |
|
| 64 | { |
|