Browse files

Updating unit tests to use https and api.twitter.com per ngnpope's co…

…mmits.
  • Loading branch information...
1 parent e9f6cd4 commit 3e49f87b5978a51e721f666c034fd6c5cf3327e0 @jmathai committed Nov 10, 2010
Showing with 4 additions and 3 deletions.
  1. +1 −0 README
  2. +3 −3 tests/EpiTwitterTest.php
View
1 README
@@ -6,6 +6,7 @@ Authors
* ericmmartin
* tahpot
* dingram
+ * ngnpope
Documentation:
* http://www.jaisenmathai.com/articles/twitter-async-documentation.html
View
6 tests/EpiTwitterTest.php
@@ -30,17 +30,17 @@ function setUp()
function testGetAuthenticateurl()
{
$aUrl = $this->twitterObjUnAuth->getAuthenticateUrl();
- $this->assertTrue(strstr($aUrl, 'http://twitter.com/oauth/authenticate') !== false, 'Authenticate url did not contain member definition from EpiTwitter class');
+ $this->assertTrue(strstr($aUrl, 'https://api.twitter.com/oauth/authenticate') !== false, 'Authenticate url did not contain member definition from EpiTwitter class');
$aUrl = $this->twitterObjUnAuth->getAuthenticateUrl(null, array('force_login'=>'true'));
- $this->assertTrue(strstr($aUrl, 'http://twitter.com/oauth/authenticate') !== false, 'Authenticate url did not contain member definition from EpiTwitter class');
+ $this->assertTrue(strstr($aUrl, 'https://api.twitter.com/oauth/authenticate') !== false, 'Authenticate url did not contain member definition from EpiTwitter class');
$this->assertTrue(strstr($aUrl, 'force_login=true') !== false, 'Authenticate url did not contain member definition from EpiTwitter class');
}
function testGetAuthorizeUrl()
{
$aUrl = $this->twitterObjUnAuth->getAuthorizeUrl($this->token);
- $this->assertTrue(strstr($aUrl, 'http://twitter.com/oauth/authorize') !== false, 'Authorize url did not contain member definition from EpiTwitter class');
+ $this->assertTrue(strstr($aUrl, 'https://api.twitter.com/oauth/authorize') !== false, 'Authorize url did not contain member definition from EpiTwitter class');
}
function testGetRequestToken()

0 comments on commit 3e49f87

Please sign in to comment.