Skip to content

Commit

Permalink
add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
x-fran committed Sep 9, 2017
1 parent 6fb349a commit 1a3b5b3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions test/GoogleTest/GTrendsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,34 @@ public function testIfTrendingSearchesReturnsArray()

$this->assertEquals(is_array($trendingSearches), true);
}

public function testIfTopChartsReturnsArray()
{
/* @var $gt GTrends */
$gt = $this->gt;

$trendingSearches = $gt->topCharts('201708', 'basketball_players');

$this->assertEquals(is_array($trendingSearches), true);
}

public function testIfSuggestionsAutocompleteReturnsArray()
{
/* @var $gt GTrends */
$gt = $this->gt;

$trendingSearches = $gt->suggestionsAutocomplete('Dublin');

$this->assertEquals(is_array($trendingSearches), true);
}

public function testIfInterestBySubregionReturnsArray()
{
/* @var $gt GTrends */
$gt = $this->gt;

$trendingSearches = $gt->interestBySubregion(['Dublin']);

$this->assertEquals(is_array($trendingSearches), true);
}
}

0 comments on commit 1a3b5b3

Please sign in to comment.