diff --git a/tests/YoutubeTest.php b/tests/YoutubeTest.php index 9336e0b..641e7a7 100644 --- a/tests/YoutubeTest.php +++ b/tests/YoutubeTest.php @@ -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()