Code Duplication    Length = 7-7 lines in 3 locations

tests/AccordionPanelTest.php 1 location

@@ 18-24 (lines=7) @@
15
    /**
16
     *
17
     */
18
    public function testGetCMSFields()
19
    {
20
        $object = $this->objFromFixture(AccordionPanel::class, 'one');
21
        $fields = $object->getCMSFields();
22
        $this->assertInstanceOf('FieldList', $fields);
23
        $this->assertNull($fields->dataFieldByName('SortOrder'));
24
    }
25
26
    /**
27
     *

tests/PhotoGalleryBlockImageTest.php 1 location

@@ 19-25 (lines=7) @@
16
    /**
17
     *
18
     */
19
    public function testGetCMSFields()
20
    {
21
        $object = $this->objFromFixture(PhotoGalleryBlockImage::class, 'one');
22
        $fields = $object->getCMSFields();
23
        $this->assertInstanceOf('FieldList', $fields);
24
        $this->assertNull($fields->dataFieldByName('PhotoGalleryID'));
25
    }
26
27
    /**
28
     *

tests/RecentBlogPostsBlockTest.php 1 location

@@ 23-29 (lines=7) @@
20
    /**
21
     *
22
     */
23
    public function testGetCMSFields()
24
    {
25
        $object = $this->objFromFixture(RecentBlogPostsBlock::class, 'one');
26
        $fields = $object->getCMSFields();
27
        $this->assertInstanceOf('FieldList', $fields);
28
        $this->assertNull($fields->dataFieldByName('SortOrder'));
29
    }
30
31
    /**
32
     *