private function generateLocationForContentType($contentTypeId) { $location = $this->getLocationMock(); $location->expects($this->any())->method('getContentInfo')->will($this->returnValue($this->generateContentInfoForContentType($contentTypeId))); return $location; }