protected function getContentServiceMock() { $contentServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\ContentService', array(), array(), '', false); $contentType = $this->getContentType(); $contentServiceMock->expects($this->any())->method('newContentCreateStruct')->with($this->equalTo($contentType), $this->equalTo('eng-US'))->will($this->returnValue(new ContentCreateStruct(array('contentType' => $contentType, 'mainLanguageCode' => 'eng-US')))); return $contentServiceMock; }