public function testCreateEncodingWithProfileName() { $videoId = md5(uniqid()); $video = new Video(); $video->setId($videoId); $profileName = 'h264'; $this->validateRequest('post', '/encodings.json', array('video_id' => $videoId, 'profile_name' => $profileName)); $this->validateTransformer('Encoding', 'stringToEncoding'); $this->cloud->createEncodingWithProfileName($video, $profileName); }
/** * {@inheritDoc} */ public function createEncodingWithProfileName(Video $video, $profileName) { return $this->doCreateEncoding(array('video_id' => $video->getId(), 'profile_name' => $profileName)); }