Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
test empty metadata cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
daaku committed Jul 16, 2012
1 parent 649f878 commit 7b7dd97
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/tests.php
Expand Up @@ -332,6 +332,15 @@ public function testMissingMetadataCookie() {
$this->assertEmpty($fb->publicGetMetadataCookie()); $this->assertEmpty($fb->publicGetMetadataCookie());
} }


public function testEmptyMetadataCookie() {
$fb = new FBMetadataCookie(array(
'appId' => self::APP_ID,
'secret' => self::SECRET,
));
$_COOKIE[$fb->publicGetMetadataCookieName()] = '';
$this->assertEmpty($fb->publicGetMetadataCookie());
}

public function testMetadataCookie() { public function testMetadataCookie() {
$fb = new FBMetadataCookie(array( $fb = new FBMetadataCookie(array(
'appId' => self::APP_ID, 'appId' => self::APP_ID,
Expand Down

0 comments on commit 7b7dd97

Please sign in to comment.