PHP Class seregazhuk\tests\Bot\Api\AuthTest

Inheritance: extends ProviderTest
Afficher le fichier Open project: seregazhuk/php-pinterest-bot

Protected Properties

Свойство Type Description
$provider seregazhuk\PinterestBot\Api\Providers\Auth
$providerClass string

Méthodes publiques

Méthode Description
is_should_proxy_logged_in_to_request ( )
it_returns_false_when_error_in_registration ( )
it_should_make_api_request_and_clear_token_when_login ( )
it_should_not_make_requests_to_api_when_login_already_logged ( )
it_should_proxy_logout_to_request ( )
it_should_register_business_account ( )
it_should_register_new_user ( )
it_should_return_false_when_error_in_business_registration ( )
it_should_return_false_when_login_fails ( )
it_should_throw_exception_when_login_with_credentials ( )

Méthodes protégées

Méthode Description
setIsLoggedInExpectation ( boolean $status )
setTokenFromCookiesExpectation ( integer $times = 1 )

Method Details

is_should_proxy_logged_in_to_request() public méthode

it_returns_false_when_error_in_registration() public méthode

it_should_make_api_request_and_clear_token_when_login() public méthode

it_should_not_make_requests_to_api_when_login_already_logged() public méthode

it_should_proxy_logout_to_request() public méthode

it_should_register_business_account() public méthode

it_should_register_new_user() public méthode

it_should_return_false_when_error_in_business_registration() public méthode

it_should_return_false_when_login_fails() public méthode

it_should_throw_exception_when_login_with_credentials() public méthode

setIsLoggedInExpectation() protected méthode

protected setIsLoggedInExpectation ( boolean $status )
$status boolean

setTokenFromCookiesExpectation() protected méthode

protected setTokenFromCookiesExpectation ( integer $times = 1 )
$times integer

Property Details

$provider protected_oe property

protected Auth,seregazhuk\PinterestBot\Api\Providers $provider
Résultat seregazhuk\PinterestBot\Api\Providers\Auth

$providerClass protected_oe property

protected string $providerClass
Résultat string