public function testLinkUpload()
 {
     $title = "api-php-link-upload-" . generateRandomStr(5);
     $videoId = Vzaar::uploadLink(self::$fileUrl, $title);
     $vid = Vzaar::getVideoDetails($videoId, true);
     $this->assertEquals($vid->videoStatusDescription, "Preparing");
     // clean up
     Vzaar::deleteVideo($videoId);
 }
 public function testUploadVideo()
 {
     $title = "api-php-" . generateRandomStr(5);
     $guid = Vzaar::uploadVideo(self::$filePath);
     $videoId = Vzaar::processVideo($guid, $title, "php test", "");
     $vid = Vzaar::getVideoDetails($videoId, true);
     $this->assertEquals($vid->videoStatusDescription, "Preparing");
     // clean up
     Vzaar::deleteVideo($videoId);
 }
 public function testEditVideo()
 {
     $videoId = API_ENVS::get()["user1"]["test_video_id"];
     $newTitle = "api-php-" . generateRandomStr(7);
     $vid = Vzaar::getVideoDetails($videoId, true);
     $originalTitle = $vid->title;
     Vzaar::editVideo($videoId, $newTitle, "woof", false);
     $vid = Vzaar::getVideoDetails($videoId, true);
     $this->assertNotEquals($vid->title, $originalTitle);
 }
 public function testRenditions()
 {
     $videoId = API_ENVS::get()["user1"]["test_video_id"];
     $vid = Vzaar::getVideoDetails($videoId, true);
     $this->assertEquals($vid->renditions[0]->statusId, 3);
 }