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