Code Duplication    Length = 17-17 lines in 2 locations

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

@@ 46-62 (lines=17) @@
43
     *
44
     * @return \eZ\Publish\API\Repository\Values\User\User
45
     */
46
    protected function getStubbedUser($id)
47
    {
48
        return new User(
49
            array(
50
                'content' => new Content(
51
                    array(
52
                        'versionInfo' => new VersionInfo(
53
                            array(
54
                                'contentInfo' => new ContentInfo(array('id' => $id)),
55
                            )
56
                        ),
57
                        'internalFields' => array(),
58
                    )
59
                ),
60
            )
61
        );
62
    }
63
64
    /**
65
     * @return \eZ\Publish\Core\Repository\Values\User\User

eZ/Publish/Core/Repository/Tests/Service/Mock/Base.php 1 location

@@ 242-258 (lines=17) @@
239
     *
240
     * @return \eZ\Publish\API\Repository\Values\User\User
241
     */
242
    protected function getStubbedUser($id)
243
    {
244
        return new User(
245
            array(
246
                'content' => new Content(
247
                    array(
248
                        'versionInfo' => new VersionInfo(
249
                            array(
250
                                'contentInfo' => new ContentInfo(array('id' => $id)),
251
                            )
252
                        ),
253
                        'internalFields' => array(),
254
                    )
255
                ),
256
            )
257
        );
258
    }
259
}
260