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