Code Duplication    Length = 20-21 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Tests/Content/ContentHandlerTest.php 1 location

@@ 107-127 (lines=21) @@
104
    /**
105
     * @covers eZ\Publish\Core\Persistence\Legacy\Content\Handler::__construct
106
     */
107
    public function testCtor()
108
    {
109
        $handler = $this->getContentHandler();
110
111
        $this->assertAttributeSame(
112
            $this->getGatewayMock(),
113
            'contentGateway',
114
            $handler
115
        );
116
        $this->assertAttributeSame(
117
            $this->getMapperMock(),
118
            'mapper',
119
            $handler
120
        );
121
        $this->assertAttributeSame(
122
            $this->getFieldHandlerMock(),
123
            'fieldHandler',
124
            $handler
125
        );
126
        // @todo Assert missing properties
127
    }
128
129
    /**
130
     * @covers eZ\Publish\Core\Persistence\Legacy\Content\Handler::create

eZ/Publish/Core/Persistence/Legacy/Tests/Content/Type/ContentTypeHandlerTest.php 1 location

@@ 53-72 (lines=20) @@
50
    /**
51
     * @covers eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler::__construct
52
     */
53
    public function testCtor()
54
    {
55
        $handler = $this->getHandler();
56
57
        $this->assertAttributeSame(
58
            $this->getGatewayMock(),
59
            'contentTypeGateway',
60
            $handler
61
        );
62
        $this->assertAttributeSame(
63
            $this->getMapperMock(),
64
            'mapper',
65
            $handler
66
        );
67
        $this->assertAttributeSame(
68
            $this->getUpdateHandlerMock(),
69
            'updateHandler',
70
            $handler
71
        );
72
    }
73
74
    /**
75
     * @covers eZ\Publish\Core\Persistence\Legacy\Content\Type\Handler::createGroup