public function testLoadContentByVersionInfo() { $contentServiceMock = $this->getPartlyMockedContentService(array('loadContent')); $contentServiceMock->expects($this->once())->method('loadContent')->with($this->equalTo(42), $this->equalTo(array('cro-HR')), $this->equalTo(7), $this->equalTo(false))->will($this->returnValue('result')); $result = $contentServiceMock->loadContentByVersionInfo(new VersionInfo(array('contentInfo' => new ContentInfo(array('id' => 42)), 'versionNo' => 7)), array('cro-HR')); $this->assertEquals('result', $result); }