Skip to content

Commit

Permalink
Check canonical embed url format in test
Browse files Browse the repository at this point in the history
  • Loading branch information
gi-lunaweb committed Apr 29, 2014
1 parent f16f96e commit 5a815b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,10 @@ public function testGetEmbedUrl()
$assets = array('mp4_h264_aac', 'jpeg_thumbnail_medium');
$media = $this->cloudkey->media->create(array('assets_names' => $assets, 'url' => $file->url));

$res = $this->cloudkey->media->get_embed_url(array('id' => $media->id));
$res_test = sprintf('/player/embed/%s/%s?', $user_id, $media->id);
$this->assertContains($res_test, $res);

$res = $this->cloudkey->media->get_embed_url(array('id' => $media->id));
$this->assertContains("http://", $res);

Expand Down

0 comments on commit 5a815b4

Please sign in to comment.