protected function getContentServiceMock() { $contentServiceMock = $this->getMock('eZ\\Publish\\Core\\Repository\\ContentService', array(), array(), '', false); $contentServiceMock->expects($this->any())->method('newContentUpdateStruct')->will($this->returnValue(new ContentUpdateStruct())); return $contentServiceMock; }