You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->assertInstanceOf( Google_Site_Kit_Proxy_Client::class, $client, 'Created client should be a Site Kit proxy client.' );
49
+
$this->assertEquals( 3, $client->getConfig( 'retry' )['retries'], 'Client should use the default retry count.' );
50
+
$this->assertEquals( Google_Proxy::get_application_name(), $client->getHttpClient()->getConfig( 'headers' )['User-Agent'], 'Client user agent should use the proxy application name.' );
51
+
$this->assertEquals( $client_id, $client->getClientId(), 'Client ID should match the provided value.' );
52
+
$this->assertEquals( $client_secret, $client->getClientSecret(), 'Client secret should match the provided value.' );
53
+
$this->assertEquals( $redirect_uri, $client->getRedirectUri(), 'Redirect URI should match the provided value.' );
54
+
$this->assertEquals( 'offline', $client->getConfig( 'access_type' ), 'Client access type defaults to offline.' );
$this->assertEquals( $expected_value, $client->getHttpClient()->getConfig( 'force_ip_resolve' ), 'Client IP resolve value should match the expected value.' );
$this->assertEquals( "https://{$user_id}@example.com", Google_Site_Kit_Client::getQuotaUser(), 'Quota user should include the current user and home URL.' );
$this->assertEquals( "http://{$user_id}@example.com/subdirectory", Google_Site_Kit_Client::getQuotaUser(), 'Quota user should include the home URL subdirectory.' );
0 commit comments