Code Duplication    Length = 9-9 lines in 2 locations

tests/pages/LocatorTest.php 2 locations

@@ 89-97 (lines=9) @@
86
    /**
87
     *
88
     */
89
    public function testGetInfoWindowTemplate()
90
    {
91
        /** @var Locator $object */
92
        $object = Injector::inst()->create(Locator::class);
93
        $template = $object->getInfoWindowTemplate();
94
        // get rid of cache ending
95
        $template = preg_replace('/\?.*$/', '', $template);
96
        $this->assertStringEndsWith('client/infowindow-description.html', $template);
97
    }
98
99
    /**
100
     *
@@ 102-110 (lines=9) @@
99
    /**
100
     *
101
     */
102
    public function testGetListTemplate()
103
    {
104
        /** @var Locator $object */
105
        $object = Injector::inst()->create(Locator::class);
106
        $template = $object->getListTemplate();
107
        // get rid of cache ending
108
        $template = preg_replace('/\?.*$/', '', $template);
109
        $this->assertStringEndsWith('client/location-list-description.html', $template);
110
    }
111
}
112