protected function getRepositoryMock() { $mock = $this->getMock('eZ\\Publish\\API\\Repository\\Repository'); $mock->expects($this->any())->method('getContentTypeService')->will($this->returnValue($this->getContentTypeServiceMock())); return $mock; }