function test_customer_experience_reviews_withouth_pagination_and_custom_review_number() { $rvm = new ReevooMarkApi('REV', false, 'http://reevoo'); $http_client = new MockedReevooMarkHttpClient("base_uri", "cache_path"); $http_client->setReturnReference('getData', new ReevooMarkDocument("HTTP/1.1 200 OK\n\nsome data", 123)); $rvm->http_client = $http_client; $http_client->expectOnce("getData", array("/reevoomark/embeddable_customer_experience_reviews?trkref=REV&reviews=6")); $customerExperienceReviews = $rvm->customerExperienceReviews(array("trkref" => "REV", "sku" => "123", "numberOfReviews" => 6)); $this->assertFalse($customerExperienceReviews['notEmpty']); }
function customerExperienceReviews($options = array()) { $customerExperienceReviews = parent::customerExperienceReviews($options); echo $customerExperienceReviews['content']; return $customerExperienceReviews['notEmpty']; }