protected function getContentServiceMock() { if (!isset($this->contentServiceMock)) { $this->contentServiceMock = $this->getMock('eZ\\Publish\\Core\\REST\\Client\\ContentService', array(), array(), '', false); } return $this->contentServiceMock; }