PHP Класс AdWordsUserTest, googleads-php-lib

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$authIniFilePath
$mockOAuth2Credential

Открытые методы

Метод Описание
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 ( )

Защищенные методы

Метод Описание
setUp ( )

Описание методов

setUp() защищенный Метод

protected setUp ( )

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() публичный Метод

Описание свойств

$authIniFilePath защищенное свойство

protected $authIniFilePath

$mockOAuth2Credential защищенное свойство

protected $mockOAuth2Credential