PHP Class AdWordsUserTest, googleads-php-lib

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: googleads/googleads-php-lib

Protected Properties

Property Type Description
$authIniFilePath
$mockOAuth2Credential

Public Methods

Method Description
testConstructWithClientIdFailsWithValidationException ( ) Tests that instantiating an AdWordsUser with an auth.ini file that has the key "clientId" will throw an exception because it has been changed to "clientCustomerId".
testGetClientLibraryUserAgentReturnsCorrectlyFormattedUserAgent ( )
testIncludeUtiliesInUserAgent ( ) Tests that the AdWordsUser object recognizes the settings of including user agents of ads utilities into the SOAP headers.
testOAuth2AdditionalScopes ( ) Tests that additional scopes are added into AdWordsUser object.
testUpdateClientLibraryUserAgent_default ( ) Tests if the user agent includes the usage of ads utilities by default.
testUpdateClientLibraryUserAgent_isIncludeUtilitiesInUserAgent_false ( ) Tests if the user agent doesn't include any usages of ads utilities when isIncludeUtilitiesInUserAgent is false.
testUpdateClientLibraryUserAgent_registry_empty ( ) Tests if the user agent doesn't include any usages of ads utilities when the registry is empty.
testValidateUserWithNonAsciiUserAgentFailsWithValidationException ( )
testValidateUserWithNullOrEmptyUserAgentDefaultToUnknown ( )

Protected Methods

Method Description
setUp ( )

Method Details

setUp() protected method

protected setUp ( )

testConstructWithClientIdFailsWithValidationException() public method

Tests that instantiating an AdWordsUser with an auth.ini file that has the key "clientId" will throw an exception because it has been changed to "clientCustomerId".

testGetClientLibraryUserAgentReturnsCorrectlyFormattedUserAgent() public method

testIncludeUtiliesInUserAgent() public method

Tests that the AdWordsUser object recognizes the settings of including user agents of ads utilities into the SOAP headers.

testOAuth2AdditionalScopes() public method

Tests that additional scopes are added into AdWordsUser object.

testUpdateClientLibraryUserAgent_default() public method

Tests if the user agent includes the usage of ads utilities by default.

testUpdateClientLibraryUserAgent_isIncludeUtilitiesInUserAgent_false() public method

Tests if the user agent doesn't include any usages of ads utilities when isIncludeUtilitiesInUserAgent is false.

testUpdateClientLibraryUserAgent_registry_empty() public method

Tests if the user agent doesn't include any usages of ads utilities when the registry is empty.

testValidateUserWithNonAsciiUserAgentFailsWithValidationException() public method

testValidateUserWithNullOrEmptyUserAgentDefaultToUnknown() public method

Property Details

$authIniFilePath protected property

protected $authIniFilePath

$mockOAuth2Credential protected property

protected $mockOAuth2Credential