Code Duplication    Length = 9-11 lines in 2 locations

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

@@ 68-76 (lines=9) @@
65
     */
66
    protected $treeHandler;
67
68
    public function setUp()
69
    {
70
        parent::setUp();
71
72
        $this->locationGateway = $this->createMock(Gateway::class);
73
        $this->locationMapper = $this->createMock(Mapper::class);
74
        $this->treeHandler = $this->createMock(TreeHandler::class);
75
        $this->contentHandler = $this->createMock(ContentHandler::class);
76
    }
77
78
    protected function getLocationHandler()
79
    {

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

@@ 52-62 (lines=11) @@
49
     */
50
    protected $contentHandler;
51
52
    protected function getTrashHandler()
53
    {
54
        $dbHandler = $this->getDatabaseHandler();
55
56
        return new Handler(
57
            $this->locationHandler = $this->createMock(CoreContent\Location\Handler::class),
58
            $this->locationGateway = $this->createMock(CoreContent\Location\Gateway::class),
59
            $this->locationMapper = $this->createMock(CoreContent\Location\Mapper::class),
60
            $this->contentHandler = $this->createMock(CoreContent\Handler::class)
61
        );
62
    }
63
64
    /**
65
     * @covers \eZ\Publish\Core\Persistence\Legacy\Content\Location\Trash\Handler::trashSubtree