Exemple #1
0
 /**
  * @covers OAuth\OAuth2\Service\Mailchimp::__construct
  * @covers OAuth\OAuth2\Service\Mailchimp::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Mailchimp($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://login.mailchimp.com/oauth2/authorize', $service->getAuthorizationEndpoint()->getAbsoluteUri());
 }
Exemple #2
0
 /**
  * @covers OAuth\OAuth2\Service\Mailchimp::__construct
  * @covers OAuth\OAuth2\Service\Mailchimp::getAuthorizationEndpoint
  */
 public function testGetAuthorizationEndpoint()
 {
     $service = new Mailchimp($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\Buzz\\Browser'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'));
     $this->assertSame('https://login.mailchimp.com/oauth2/authorize', (string) $service->getAuthorizationEndpoint());
 }