Code Duplication    Length = 20-21 lines in 2 locations

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

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

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

@@ 116-136 (lines=21) @@
113
    /**
114
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Handler::__construct
115
     */
116
    public function testCtor()
117
    {
118
        $handler = $this->getContentHandler();
119
120
        $this->assertAttributeSame(
121
            $this->getGatewayMock(),
122
            'contentGateway',
123
            $handler
124
        );
125
        $this->assertAttributeSame(
126
            $this->getMapperMock(),
127
            'mapper',
128
            $handler
129
        );
130
        $this->assertAttributeSame(
131
            $this->getFieldHandlerMock(),
132
            'fieldHandler',
133
            $handler
134
        );
135
        // @todo Assert missing properties
136
    }
137
138
    /**
139
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Handler::create