public function testMultiProductRecommendationLoading() { $this->adapter->setProductIds(array('274036', '233431')); $recommendations = $this->adapter->getRecommendations(); $this->assertEquals(1, count($recommendations), 'wrong number of recommendations delivered'); $this->assertInstanceOf('FACTFinder\\Data\\Record', $recommendations[0], 'recommended product is no record'); $this->assertNotEmpty($recommendations[0], 'first recommended record is empty'); $this->assertEquals('225052', $recommendations[0]->getID(), 'wrong id delivered for first recommended record'); }