Code Duplication    Length = 27-27 lines in 2 locations

tests/OperationManualTest.php 1 location

@@ 3-29 (lines=27) @@
1
<?php
2
3
class OperationManualTest extends SapphireTest
4
{
5
    /**
6
     * @var string
7
     */
8
    protected static $fixture_file = 'product-catalog/tests/fixtures.yml';
9
10
    public function testGetCMSFields()
11
    {
12
        $object = singleton('OperationManual');
13
        $fields = $object->getCMSFields();
14
        $this->assertInstanceOf('FieldList', $fields);
15
16
        $object = $this->objFromFixture('OperationManual', 'one');
17
        $fields = $object->getCMSFields();
18
        $this->assertInstanceOf('FieldList', $fields);
19
    }
20
21
    /**
22
     *
23
     */
24
    public function testGetProductsCt()
25
    {
26
        $object = $this->objFromFixture('OperationManual', 'one');
27
        $this->assertEquals($object->getProductsCt(), 1);
28
    }
29
}
30

tests/SpecSheetTest.php 1 location

@@ 3-29 (lines=27) @@
1
<?php
2
3
class SpecSheetTest extends SapphireTest
4
{
5
    /**
6
     * @var string
7
     */
8
    protected static $fixture_file = 'product-catalog/tests/fixtures.yml';
9
10
    public function testGetCMSFields()
11
    {
12
        $object = new SpecSheet();
13
        $fields = $object->getCMSFields();
14
        $this->assertInstanceOf('FieldList', $fields);
15
16
        $object = $this->objFromFixture('SpecSheet', 'one');
17
        $fields = $object->getCMSFields();
18
        $this->assertInstanceOf('FieldList', $fields);
19
    }
20
21
    /**
22
     *
23
     */
24
    public function testGetProductsCt()
25
    {
26
        $object = $this->objFromFixture('SpecSheet', 'one');
27
        $this->assertEquals($object->getProductsCt(), 1);
28
    }
29
}
30