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