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

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