protected function getContentMock() { $contentMock = $this->getMock('eZ\\Publish\\API\\Repository\\Values\\Content\\Content', array(), array(), '', false); $contentMock->expects($this->once())->method('getVersionInfo')->will($this->returnValue($this->getVersionInfoMock())); return $contentMock; }