public function testVideoUpload() { $facebook = new FBRecordURL(array( 'appId' => self::APP_ID, 'secret' => self::SECRET )); $facebook->api(array('method' => 'video.upload')); $this->assertContains('//api-video.', $facebook->getRequestedURL(), 'video.upload should go against api-video'); }
public function testVideoUploadGraph() { $facebook = new FBRecordURL(array('appId' => self::APP_ID, 'secret' => self::SECRET)); $facebook->api('/me/videos', 'POST'); $this->assertContains('//graph-video.', $facebook->getRequestedURL(), '/me/videos should go against graph-video'); }
public function testVideoUpload() { $facebook = new FBRecordURL(array('appId' => self::APP_ID, 'secret' => self::SECRET, 'cookie' => true)); $facebook->setSession(self::$VALID_EXPIRED_SESSION); $facebook->api(array('method' => 'video.upload')); $this->assertContains('//api-video.', $facebook->getRequestedURL(), 'video.upload should go against api-video'); }