ApexTestCase::http
Usage
ResponseInterface ApexTestCase::http(string $uri, [ string $method = 'GET' ], [ ?array $post = null ], [ array $get = [] ], [ array $cookie = [] ], [ array $headers = [] ], [ ?string $host = null ])Description
Send test http requestParameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| $uri | Yes | string | |
| $method | No | string | |
| $post | No | ?array | |
| $get | No | array | |
| $cookie | No | array | |
| $headers | No | array | |
| $host | No | ?string |