Code Duplication    Length = 18-18 lines in 2 locations

tests/EmbedBlockTest.php 1 location

@@ 3-20 (lines=18) @@
1
1`<?php
2
3
class EmbedBlockTest extends SapphireTest
4
{
5
    /**
6
     * @var string
7
     */
8
    protected static $fixture_file = 'dynamic-blocks/tests/Fixtures.yml';
9
10
    /**
11
     *
12
     */
13
    public function testGetCMSFields()
14
    {
15
        $object = $this->objFromFixture('EmbedBlock', 'one');
16
        $fields = $object->getCMSFields();
17
        $this->assertInstanceOf('FieldList', $fields);
18
        $this->assertNotNull($fields->dataFieldByName('EmbeddedObject'));
19
    }
20
}
21

tests/VideoBlockTest.php 1 location

@@ 3-20 (lines=18) @@
1
<?php
2
3
class VideoBlockTest extends SapphireTest
4
{
5
    /**
6
     * @var string
7
     */
8
    protected static $fixture_file = 'dynamic-blocks/tests/Fixtures.yml';
9
10
    /**
11
     *
12
     */
13
    public function testGetCMSFields()
14
    {
15
        $object = $this->objFromFixture('VideoBlock', 'one');
16
        $fields = $object->getCMSFields();
17
        $this->assertInstanceOf('FieldList', $fields);
18
        $this->assertNotNull($fields->dataFieldByName('VideoID'));
19
    }
20
}