Code Duplication    Length = 20-21 lines in 2 locations

eZ/Publish/Core/Repository/Tests/Service/Integration/LocationBase.php 1 location

@@ 30-50 (lines=21) @@
27
     *
28
     * @covers \eZ\Publish\API\Repository\Values\Content\Location::__construct
29
     */
30
    public function testNewClass()
31
    {
32
        $location = new Location();
33
34
        $this->assertPropertiesCorrect(
35
            array(
36
                'id' => null,
37
                'priority' => null,
38
                'hidden' => null,
39
                'invisible' => null,
40
                'remoteId' => null,
41
                'parentLocationId' => null,
42
                'pathString' => null,
43
                'path' => array(),
44
                'depth' => null,
45
                'sortField' => null,
46
                'sortOrder' => null,
47
            ),
48
            $location
49
        );
50
    }
51
52
    /**
53
     * Test retrieving missing property.

eZ/Publish/Core/Repository/Tests/Service/Integration/TrashBase.php 1 location

@@ 32-51 (lines=20) @@
29
     *
30
     * @covers \eZ\Publish\API\Repository\Values\Content\TrashItem::__construct
31
     */
32
    public function testNewClass()
33
    {
34
        $trashItem = new TrashItem();
35
36
        $this->assertPropertiesCorrect(
37
            array(
38
                'id' => null,
39
                'priority' => null,
40
                'hidden' => null,
41
                'invisible' => null,
42
                'remoteId' => null,
43
                'parentLocationId' => null,
44
                'pathString' => null,
45
                'depth' => null,
46
                'sortField' => null,
47
                'sortOrder' => null,
48
            ),
49
            $trashItem
50
        );
51
    }
52
53
    /**
54
     * Test retrieving missing property.