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

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