protected function getTreeHandlerMock() { if (!isset($this->treeHandlerMock)) { $this->treeHandlerMock = $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\TreeHandler', array(), array(), '', false); } return $this->treeHandlerMock; }