Skip to content

Commit

Permalink
Update fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrimaud committed Jun 1, 2020
1 parent 1b29200 commit 3bac84d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions tests/ApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ public function testGetMediaDetailed()
new Response(200, [], file_get_contents(__DIR__ . '/fixtures/instagram-login-success.json')),
new Response(200, [], file_get_contents(__DIR__ . '/fixtures/instagram-media.json')),
new Response(200, [], file_get_contents(__DIR__ . '/fixtures/instagram-media-2.json')),
new Response(200, [], file_get_contents(__DIR__ . '/fixtures/instagram-media-3.json')),
]);

$handlerStack = HandlerStack::create($mock);
Expand Down Expand Up @@ -341,6 +342,16 @@ public function testGetMediaDetailed()
$this->assertCount(0, $mediaDetailed->getSideCarItems());
$this->assertCount(3, $mediaDetailed->getDisplayResources());

$media->setLink('https://www.instagram.com/p/B-NYjoGpQqC/');

$mediaDetailed = $api->getMediaDetailed($media);

$this->assertSame(false, $mediaDetailed->hasAudio());
$this->assertCount(0, $mediaDetailed->getTaggedUsers());
$this->assertCount(4, $mediaDetailed->getSideCarItems());
$this->assertCount(3, $mediaDetailed->getDisplayResources());


$api->logout();
}
}
Loading

0 comments on commit 3bac84d

Please sign in to comment.