PHP Класс seregazhuk\tests\Bot\RequestTest

Наследование: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase, use trait seregazhuk\tests\helpers\ReflectionHelper, use trait seregazhuk\tests\helpers\ResponseHelper, use trait seregazhuk\tests\helpers\CookiesHelper
Показать файл Открыть проект

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

Метод Описание
it_should_clear_token_and_login_status_after_logout ( )
it_should_create_pinterest_request_object_with_bookmarks ( )
it_should_create_pinterest_request_object_with_data ( )
it_should_create_post_data_for_upload ( )
it_should_create_simple_pinterest_request_object ( )
it_should_load_cookies_from_previously_saved_session_on_auto_login ( )
it_should_return_false_on_auto_login_when_auth_cookie_not_found ( )
it_should_return_logged_in_status ( )
it_should_return_true_on_auto_login_when_auth_cookie_exist ( )
it_should_set_csrf_token_to_default_value_after_clear ( )
it_should_throw_exception_uploading_file_that_does_not_exist ( )

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

Метод Описание
createRequestObject ( seregazhuk\PinterestBot\Api\Contracts\HttpClient $http = null, string $userAgentString = '' ) : Request
getHttpObject ( ) : Mock | seregazhuk\PinterestBot\Api\Contracts\HttpClient
http_should_execute_and_return ( Mock $http, mixed $returnsValue, integer $times = 1 )
tearDown ( )

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

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

protected createRequestObject ( seregazhuk\PinterestBot\Api\Contracts\HttpClient $http = null, string $userAgentString = '' ) : Request
$http seregazhuk\PinterestBot\Api\Contracts\HttpClient
$userAgentString string
Результат seregazhuk\PinterestBot\Api\Request

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

protected getHttpObject ( ) : Mock | seregazhuk\PinterestBot\Api\Contracts\HttpClient
Результат Mockery\Mock | seregazhuk\PinterestBot\Api\Contracts\HttpClient

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

protected http_should_execute_and_return ( Mock $http, mixed $returnsValue, integer $times = 1 )
$http Mockery\Mock
$returnsValue mixed
$times integer

it_should_clear_token_and_login_status_after_logout() публичный Метод

it_should_create_pinterest_request_object_with_bookmarks() публичный Метод

it_should_create_pinterest_request_object_with_data() публичный Метод

it_should_create_post_data_for_upload() публичный Метод

it_should_create_simple_pinterest_request_object() публичный Метод

it_should_load_cookies_from_previously_saved_session_on_auto_login() публичный Метод

it_should_return_logged_in_status() публичный Метод

it_should_set_csrf_token_to_default_value_after_clear() публичный Метод

it_should_throw_exception_uploading_file_that_does_not_exist() публичный Метод

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

protected tearDown ( )