Code Duplication    Length = 20-21 lines in 2 locations

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

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

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

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