Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daaku committed Nov 17, 2010
1 parent 9147097 commit 1b3edf9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/tests.php
Expand Up @@ -2,7 +2,6 @@

/**
* @owner naitik
* @emails naitik@facebook.com, platform-tests@lists.facebook.com
*/

class FacebookTest extends PHPUnit_Framework_TestCase
Expand Down Expand Up @@ -340,7 +339,7 @@ public function testGraphAPIMethod() {
$this->fail('Should not get here.');
} catch(FacebookApiException $e) {
// ProfileDelete means the server understood the DELETE
$msg = 'GraphMethodException: Unsupported delete request.';
$msg = 'OAuthException: An access token is required to request this resource.';
$this->assertEquals($msg, (string) $e,
'Expect the invalid session message.');
}
Expand Down Expand Up @@ -376,12 +375,13 @@ public function testGraphAPIMethodOAuthSpecError() {
));

try {
$response = $facebook->api('/naitik', 'DELETE', array(
$response = $facebook->api('/daaku.shah', 'DELETE', array(
'client_id' => self::MIGRATED_APP_ID));
$this->fail('Should not get here.');
} catch(FacebookApiException $e) {
// ProfileDelete means the server understood the DELETE
$msg = 'invalid_request: Unsupported delete request.';
$msg = 'invalid_request: Test account not associated with application: '.
'The test account is not associated with this application.';
$this->assertEquals($msg, (string) $e,
'Expect the invalid session message.');
}
Expand Down Expand Up @@ -728,8 +728,8 @@ public function testBundledCACert() {
'secret' => self::SECRET,
));

// use the bundled cert from the start
Facebook::$CURL_OPTS[CURLOPT_CAINFO] = dirname(__FILE__) . '/../fb_ca_chain_bundle.crt';
// use the bundled cert from the start
Facebook::$CURL_OPTS[CURLOPT_CAINFO] = dirname(__FILE__) . '/../src/fb_ca_chain_bundle.crt';
$response = $facebook->api('/naitik');

unset(Facebook::$CURL_OPTS[CURLOPT_CAINFO]);
Expand Down

0 comments on commit 1b3edf9

Please sign in to comment.