PHP Class seregazhuk\tests\Bot\Api\AuthTest

Inheritance: extends ProviderTest
Show file Open project: seregazhuk/php-pinterest-bot

Protected Properties

Property Type Description
$provider seregazhuk\PinterestBot\Api\Providers\Auth
$providerClass string

Public Methods

Method 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 ( )

Protected Methods

Method Description
setIsLoggedInExpectation ( boolean $status )
setTokenFromCookiesExpectation ( integer $times = 1 )

Method Details

is_should_proxy_logged_in_to_request() public method

it_returns_false_when_error_in_registration() public method

it_should_make_api_request_and_clear_token_when_login() public method

it_should_not_make_requests_to_api_when_login_already_logged() public method

it_should_proxy_logout_to_request() public method

it_should_register_business_account() public method

it_should_register_new_user() public method

it_should_return_false_when_error_in_business_registration() public method

it_should_return_false_when_login_fails() public method

it_should_throw_exception_when_login_with_credentials() public method

setIsLoggedInExpectation() protected method

protected setIsLoggedInExpectation ( boolean $status )
$status boolean

setTokenFromCookiesExpectation() protected method

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

Property Details

$provider protected property

protected Auth,seregazhuk\PinterestBot\Api\Providers $provider
return seregazhuk\PinterestBot\Api\Providers\Auth

$providerClass protected property

protected string $providerClass
return string