Beispiel #1
0
 /**
  * @covers Facebook::haveFacebookTestUserAccount
  * @covers Facebook::grabFacebookTestUserEmail
  * @covers Facebook::grabFacebookTestUserAccessToken
  */
 public function testHaveFacebookTestUserAccount()
 {
     $this->module->haveFacebookTestUserAccount(false);
     $this->assertNotEmpty($this->module->grabFacebookTestUserEmail());
     $this->assertNotEmpty($this->module->grabFacebookTestUserAccessToken());
     $testUserEmailBeforeRenew = $this->module->grabFacebookTestUserEmail();
     $this->module->haveFacebookTestUserAccount(true);
     $testUserEmailAfterRenew = $this->module->grabFacebookTestUserEmail();
     $this->assertNotEquals($testUserEmailBeforeRenew, $testUserEmailAfterRenew);
 }
 /**
  * @covers Facebook::haveFacebookTestUserId
  * @covers Facebook::haveFacebookTestUserAccount
  * @covers Facebook::grabFacebookTestUserEmail
  * @covers Facebook::grabFacebookTestUserAccessToken
  */
 public function testHaveFacebookTestUserAccount()
 {
     $this->module->haveFacebookTestUserAccount(false);
     $this->assertNotEmpty($this->module->grabFacebookTestUserId());
     $this->assertNotEmpty($this->module->grabFacebookTestUserEmail());
     $this->assertNotEmpty($this->module->grabFacebookTestUserAccessToken());
     $testUserEmailBeforeRenew = $this->module->grabFacebookTestUserEmail();
     $this->module->haveFacebookTestUserAccount(true);
     $testUserEmailAfterRenew = $this->module->grabFacebookTestUserEmail();
     $this->assertNotEquals($testUserEmailBeforeRenew, $testUserEmailAfterRenew);
     $testUserIdBeforeRenew = $this->module->grabFacebookTestUserId();
     $this->module->haveFacebookTestUserAccount(true);
     $testUserIdAfterRenew = $this->module->grabFacebookTestUserId();
     $this->assertNotEquals($testUserIdBeforeRenew, $testUserIdAfterRenew);
     $this->assertEquals(ucwords($this->config['test_user']['name']), $this->module->grabFacebookTestUserName());
 }