Code Duplication    Length = 13-13 lines in 2 locations

tests/php/URLArrayObjectTest.php 2 locations

@@ 25-37 (lines=13) @@
22
    SiteTree::class => array(SiteTreePublishingEngine::class),
23
    );
24
25
    public function testExcludeFromCacheExcludesPageURLs()
26
    {
27
        /**
28
 * @var URLArrayObject $urlArrayObject
29
*/
30
        $urlArrayObject = singleton('SiteTree')->urlArrayObject;
31
        $method = $this->getProtectedOrPrivateMethod('excludeFromCache');
32
33
        /**
34
 * @var SiteTree $excluded
35
*/
36
        $excluded = $this->objFromFixture(URLArrayObjectTestPage::class, 'excluded');
37
        /**
38
 * @var SiteTree $included
39
*/
40
        $included = $this->objFromFixture(URLArrayObjectTestPage::class, 'included');
@@ 46-58 (lines=13) @@
43
        $this->assertFalse($method->invoke($urlArrayObject, $included->Link()));
44
    }
45
46
    public function testExcludeFromCacheExcludesPageURLsWithQueryStrings()
47
    {
48
        /**
49
 * @var URLArrayObject $urlArrayObject
50
*/
51
        $urlArrayObject = SiteTree::singleton()->urlArrayObject;
52
        $method = $this->getProtectedOrPrivateMethod('excludeFromCache');
53
54
        /**
55
 * @var SiteTree $excluded
56
*/
57
        $excluded = $this->objFromFixture(URLArrayObjectTestPage::class, 'excluded');
58
        /**
59
 * @var SiteTree $included
60
*/
61
        $included = $this->objFromFixture(URLArrayObjectTestPage::class, 'included');