Laravel\Lumen\Testing\CrawlerTrait::makeRequest PHP Method

makeRequest() protected method

Make a request to the application and create a Crawler instance.
protected makeRequest ( string $method, string $uri, array $parameters = [], array $cookies = [], array $files = [] )
$method string
$uri string
$parameters array
$cookies array
$files array
    protected function makeRequest($method, $uri, $parameters = [], $cookies = [], $files = [])
    {
        $uri = $this->prepareUrlForRequest($uri);
        $this->call($method, $uri, $parameters, $cookies, $files);
        $this->clearInputs()->followRedirects()->assertPageLoaded($uri);
        $this->currentUri = $this->app->make('request')->fullUrl();
        $this->crawler = new Crawler($this->response->getContent(), $uri);
        return $this;
    }