Skip to content
Browse files

test graph video url switchinge

  • Loading branch information...
1 parent 0423278 commit 306f878d43251ef0d3f8cc63d011faf0b2bf196e @daaku daaku committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 tests/tests.php
View
11 tests/tests.php
@@ -801,6 +801,17 @@ public function testVideoUpload() {
'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 testGetUserAndAccessTokenFromSession() {
$facebook = new PersistentFBPublic(array(
'appId' => self::APP_ID,

0 comments on commit 306f878

Please sign in to comment.
Something went wrong with that request. Please try again.