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