Ejemplo n.º 1
0
 /** @dataProvider provideStorage */
 public function testCheckRestrictedGrantType(ClientInterface $storage)
 {
     if ($storage instanceof NullStorage) {
         $this->markTestSkipped('Skipped Storage: ' . $storage->getMessage());
         return;
     }
     // Check invalid
     $pass = $storage->checkRestrictedGrantType('oauth_test_client', 'authorization_code');
     $this->assertFalse($pass);
     // Check valid
     $pass = $storage->checkRestrictedGrantType('oauth_test_client', 'implicit');
     $this->assertTrue($pass);
 }