public function testPageDataCanBeAccessed()
 {
     $_POST['signed_request'] = $this->rawSignedRequestAuthorized;
     $helper = new FacebookPageTabHelper('123', 'foo_app_secret');
     $this->assertTrue($helper->isLiked());
     $this->assertFalse($helper->isAdmin());
     $this->assertEquals('42', $helper->getPageId());
     $this->assertEquals('42', $helper->getPageData('id'));
     $this->assertEquals('default', $helper->getPageData('foo', 'default'));
 }
 public function testLoggedOutPageTab()
 {
     $signedRequest = FacebookSessionTest::makeSignedRequest(array('page' => array('liked' => 'false', 'admin' => 'true', 'id' => 42)));
     $_POST['signed_request'] = $signedRequest;
     $helper = new FacebookPageTabHelper();
     $session = $helper->getSession();
     $this->assertNull($session);
     $this->assertFalse($helper->isLiked());
     $this->assertTrue($helper->isAdmin());
     $this->assertEquals(42, $helper->getPageId());
 }