Code Duplication    Length = 8-9 lines in 2 locations

tests/Definition/SitemapDefintionTest.php 2 locations

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