Code Duplication    Length = 11-11 lines in 2 locations

tests/pages/LocatorControllerTest.php 2 locations

@@ 29-39 (lines=11) @@
26
    /**
27
     * Tests the json route
28
     */
29
    public function testJson()
30
    {
31
        $locator = $this->objFromFixture(Locator::class, 'locator1');
32
33
        $page = $this->get($locator->Link('json'));
34
35
        $this->assertEquals(200, $page->getStatusCode());
36
        $this->assertEquals('application/json', $page->getHeader('Content-Type'));
37
38
        $this->assertNotEquals(null, json_decode($page->getBody()));
39
    }
40
41
    /**
42
     * Tests the settings route
@@ 44-54 (lines=11) @@
41
    /**
42
     * Tests the settings route
43
     */
44
    public function testSettings()
45
    {
46
        $locator = $this->objFromFixture(Locator::class, 'locator1');
47
48
        $page = $this->get($locator->Link('settings'));
49
50
        $this->assertEquals(200, $page->getStatusCode());
51
        $this->assertEquals('application/json', $page->getHeader('Content-Type'));
52
53
        $this->assertNotEquals(null, json_decode($page->getBody()));
54
    }
55
56
    /**
57
     * Tests specific parts of getLocations()