assertCount( 4, $grant_types ); $this->assertContains( 'authorization_code', $grant_types ); $this->assertContains( 'implicit', $grant_types ); $this->assertContains( 'refresh_token', $grant_types ); $this->assertContains( 'client_credentials', $grant_types ); } /** * Test that the API scopes requested are correct. */ public function testThatConsentScopesAreCorrect() { $scopes = WP_Auth0_Api_Client::ConsentRequiredScopes(); $this->assertCount( 7, $scopes ); $this->assertContains( 'create:clients', $scopes ); $this->assertContains( 'create:client_grants', $scopes ); $this->assertContains( 'create:connections', $scopes ); $this->assertContains( 'read:connections', $scopes ); $this->assertContains( 'update:connections', $scopes ); $this->assertContains( 'read:users', $scopes ); $this->assertContains( 'update:users', $scopes ); } }