public function setup()
 {
     $backend = new StubBackendSingletonContainerImpl();
     $site = new StubSiteImpl();
     $site->setVariables(new StubVariablesImpl());
     $backend->setSiteInstance($site);
     $config = new StubConfigImpl();
     $config->setFacebookAppCredentials(['id' => $GLOBALS['FB_APP_ID'], 'secret' => $GLOBALS['FB_APP_SECRET'], 'permanent_access_token' => $GLOBALS['FB_ACCESS_TOKEN']]);
     $config->setVariables(['facebook_page_id' => $GLOBALS['FB_PAGE_ID']]);
     $backend->setConfigInstance($config);
     $backend->setTmpFolder($f = new FolderImpl("/tmp/lenevemb.dk-test/"));
     $f->delete(Folder::DELETE_FOLDER_RECURSIVE);
     $script = new FacebookSessionInitializePreScriptImpl($backend);
     $script->run(Website::WEBSITE_SCRIPT_TYPE_PRESCRIPT, null);
     $this->page = new FacebookPageImpl($backend, $GLOBALS['FB_PAGE_ID']);
     $this->status = $this->page->getStatus();
 }
 public function testGetStatusReturnsSameInstance()
 {
     $this->assertTrue($this->page->getStatus() === $this->page->getStatus());
 }