Permalink
Browse files

Removed getLoginStatusUrl tests:

  • Loading branch information...
1 parent 400ae78 commit 8a992afce97122556c4e42b0f1c1d60b9d49276d @gfosco gfosco committed Apr 4, 2014
Showing with 0 additions and 31 deletions.
  1. +0 −31 tests/tests.php
View
@@ -761,37 +761,6 @@ public function testLogoutURLDefaults() {
$this->assertFalse(strpos($facebook->getLogoutUrl(), self::SECRET));
}
- public function testLoginStatusURLDefaults() {
- $_SERVER['HTTP_HOST'] = 'fbrell.com';
- $_SERVER['REQUEST_URI'] = '/examples';
- $facebook = new TransientFacebook(array(
- 'appId' => self::APP_ID,
- 'secret' => self::SECRET,
- ));
- $encodedUrl = rawurlencode('http://fbrell.com/examples');
- $this->assertNotNull(strpos($facebook->getLoginStatusUrl(), $encodedUrl),
- 'Expect the current url to exist.');
- }
-
- public function testLoginStatusURLCustom() {
- $_SERVER['HTTP_HOST'] = 'fbrell.com';
- $_SERVER['REQUEST_URI'] = '/examples';
- $facebook = new TransientFacebook(array(
- 'appId' => self::APP_ID,
- 'secret' => self::SECRET,
- ));
- $encodedUrl1 = rawurlencode('http://fbrell.com/examples');
- $okUrl = 'http://fbrell.com/here1';
- $encodedUrl2 = rawurlencode($okUrl);
- $loginStatusUrl = $facebook->getLoginStatusUrl(array(
- 'ok_session' => $okUrl,
- ));
- $this->assertNotNull(strpos($loginStatusUrl, $encodedUrl1),
- 'Expect the current url to exist.');
- $this->assertNotNull(strpos($loginStatusUrl, $encodedUrl2),
- 'Expect the custom url to exist.');
- }
-
public function testNonDefaultPort() {
$_SERVER['HTTP_HOST'] = 'fbrell.com:8080';
$_SERVER['REQUEST_URI'] = '/examples';

0 comments on commit 8a992af

Please sign in to comment.