private function generateLocationForContentId($contentId) { $location = $this->getLocationMock(); $location->expects($this->any())->method('getContentInfo')->will($this->returnValue($this->getContentInfoMock(array('id' => $contentId)))); return $location; }