Code Duplication    Length = 8-8 lines in 2 locations

tests/MapFieldTest.php 2 locations

@@ 5-12 (lines=8) @@
2
3
class MapFieldTest extends SapphireTest
4
{
5
    public function testFieldWithTitle()
6
    {
7
        //$headingLevel = 2, $allowHTML = false, $form = nul
8
        $field = new MapField('NameOfField', 'TitleOfField');
9
        $expected = '<div class="editableMap"><div class="middleColumn" id="Nam'
10
                  .'eOfField" style="width:100%;height:300px;margin:5px 0px 5p'
11
                  .'x 5px;position:relative;"></div></div>';
12
        $this->assertEquals($expected, $field->Field());
13
    }
14
15
    public function testFieldWithoutTitle()
@@ 15-22 (lines=8) @@
12
        $this->assertEquals($expected, $field->Field());
13
    }
14
15
    public function testFieldWithoutTitle()
16
    {
17
        //$headingLevel = 2, $allowHTML = false, $form = nul
18
        $field = new MapField('NameOfField');
19
        $expected = '<div class="editableMap"><div class="middleColumn" id="Nam'
20
                  .'eOfField" style="width:100%;height:300px;margin:5px 0px 5p'
21
                  .'x 5px;position:relative;"></div></div>';
22
        $this->assertEquals($expected, $field->Field());
23
    }
24
}
25