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