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