Skip to content

Commit

Permalink
fixed testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
vishal-sancheti committed Jul 14, 2017
1 parent 9404b2c commit 8400383
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/YoutubeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@ public function testInvalidApiKey()
public function testGetCategories()
{
$region = 'US';
$response = $this->youtube->getCategories($region);
$part = ['snippet'];
$response = $this->youtube->getCategories($region,$part);

$this->assertNotNull('response');
$this->assertEquals('youtube#videoCategory', $response[0]->kind);
//add all these assertions here in case the api is changed,
//we can detect it instantly
$this->assertObjectHasAttribute('snippet', $response);
$this->assertObjectHasAttribute('snippet', $response[0]);
}

public function testGetVideoInfo()
Expand Down

0 comments on commit 8400383

Please sign in to comment.