1 | <?php |
||
13 | class GraphQLClientSpec extends ObjectBehavior |
||
14 | { |
||
15 | const GRAPHQL_ENDPOINT = 'https://graphql.yproximite.fr'; |
||
16 | |||
17 | public function it_is_initializable() |
||
21 | |||
22 | public function let(HttpClient $httpClient, AuthClient $authClient, MessageFactory $messageFactory) |
||
29 | |||
30 | public function it_should_send_auth_request_before_graphql_request() |
||
33 | |||
34 | public function it_should_handle_case_where_api_token_is_invalid() |
||
37 | |||
38 | public function it_should_handle_case_auth_response_returns_401() |
||
41 | |||
42 | public function it_should_handle_case_auth_response_is_invalid_json() |
||
45 | |||
46 | public function it_should_send_graphql_query() |
||
49 | |||
50 | public function it_should_handle_case_when_graphql_query_returns_errors() |
||
53 | |||
54 | public function it_should_handle_case_when_graphql_query_returns_warnings() |
||
57 | |||
58 | public function it_should_send_graphql_mutation() |
||
61 | |||
62 | public function it_should_handle_case_when_mutation_query_returns_errors() |
||
65 | |||
66 | public function it_should_handle_case_when_mutation_query_returns_warnings() |
||
69 | |||
70 | public function it_should_upload_files() |
||
92 | |||
93 | public function it_should_handle_case_when_uploading_empty_files() |
||
97 | |||
98 | public function it_should_handle_case_when_uploading_is_failing() |
||
101 | } |
||
102 |