Permalink
Browse files

combine the two test cookie classes

  • Loading branch information...
1 parent 920cdbb commit 5535e4b2ffccbf6e50884723402b3afeedded68c @daaku daaku committed Jul 16, 2012
Showing with 8 additions and 10 deletions.
  1. +8 −10 tests/tests.php
View
18 tests/tests.php
@@ -288,7 +288,7 @@ public function testGetUserFromSignedRequest() {
}
public function testGetSignedRequestFromCookie() {
- $facebook = new FBGetSignedRequestCookieFacebook(array(
+ $facebook = new FBPublicCookie(array(
'appId' => self::APP_ID,
'secret' => self::SECRET,
));
@@ -301,7 +301,7 @@ public function testGetSignedRequestFromCookie() {
}
public function testGetSignedRequestWithIncorrectSignature() {
- $facebook = new FBGetSignedRequestCookieFacebook(array(
+ $facebook = new FBPublicCookie(array(
'appId' => self::APP_ID,
'secret' => self::SECRET,
));
@@ -325,15 +325,15 @@ public function testNonUserAccessToken() {
}
public function testMissingMetadataCookie() {
- $fb = new FBMetadataCookie(array(
+ $fb = new FBPublicCookie(array(
'appId' => self::APP_ID,
'secret' => self::SECRET,
));
$this->assertEmpty($fb->publicGetMetadataCookie());
}
public function testEmptyMetadataCookie() {
- $fb = new FBMetadataCookie(array(
+ $fb = new FBPublicCookie(array(
'appId' => self::APP_ID,
'secret' => self::SECRET,
));
@@ -342,7 +342,7 @@ public function testEmptyMetadataCookie() {
}
public function testMetadataCookie() {
- $fb = new FBMetadataCookie(array(
+ $fb = new FBPublicCookie(array(
'appId' => self::APP_ID,
'secret' => self::SECRET,
));
@@ -353,7 +353,7 @@ public function testMetadataCookie() {
}
public function testQuotedMetadataCookie() {
- $fb = new FBMetadataCookie(array(
+ $fb = new FBPublicCookie(array(
'appId' => self::APP_ID,
'secret' => self::SECRET,
));
@@ -1256,7 +1256,7 @@ public function testExceptionToString() {
}
public function testDestroyClearsCookie() {
- $fb = new FBGetSignedRequestCookieFacebook(array(
+ $fb = new FBPublicCookie(array(
'appId' => self::APP_ID,
'secret' => self::SECRET,
));
@@ -1375,17 +1375,15 @@ public function publicGetCurrentUrl() {
}
}
-class FBGetSignedRequestCookieFacebook extends TransientFacebook {
+class FBPublicCookie extends TransientFacebook {
public function publicGetSignedRequest() {
return $this->getSignedRequest();
}
public function publicGetSignedRequestCookieName() {
return $this->getSignedRequestCookieName();
}
-}
-class FBMetadataCookie extends TransientFacebook {
public function publicGetMetadataCookie() {
return $this->getMetadataCookie();
}

0 comments on commit 5535e4b

Please sign in to comment.