Code Duplication    Length = 9-12 lines in 2 locations

tests/LocatorTest.php 2 locations

@@ 12-20 (lines=9) @@
9
        $this->assertTrue(is_a($fieldset, 'FieldList'));
10
    }
11
12
    public function testLocations()
13
    {
14
        $filter = array('ShowInLocator' => 1);
15
        $filterAny = array('Suburb' => 'Sheboygan');
16
        $exclude = array('Suburb' => 'Milwaukee');
17
        $locations = Locator::locations($filter, $filterAny, $exclude);
18
        $locations2 = Location::get()->filter($filter)->filterAny($filterAny)->exclude($exclude);
19
        $this->assertEquals($locations->Count(), $locations2->Count());
20
    }
21
22
    public function testGetAllCategories()
23
    {
@@ 60-71 (lines=12) @@
57
        $this->assertInstanceOf('HTMLText', $controller->xml($controller->request));
58
    }
59
60
    public function testItems()
61
    {
62
        $locator = $this->objFromFixture('Locator', 'locator1');
63
        $controller = Locator_Controller::create($locator);
64
65
        $filter = array('ShowInLocator' => 1);
66
        $exclude = ['Lat' => 0.00000, 'Lng' => 0.00000];
67
68
        $locations = $controller->Items($controller->request);
69
        $locations2 = Location::get()->filter($filter)->exclude($exclude);
70
        $this->assertEquals($locations->count(), $locations2->count());
71
    }
72
73
    public function testLocationSearch()
74
    {