Jarves\Tests\KernelAwareTestCase::call PHP Method

call() public method

public call ( $path = '/', $method = 'GET', $parameters = [] )
    public function call($path = '/', $method = 'GET', $parameters = [])
    {
        $client = static::createClient();
        $server = [];
        if (!$parameters) {
            $parameters = [];
        }
        if ($this->allCookies) {
            foreach ($this->allCookies as $cookie) {
                $client->getCookieJar()->set($cookie);
            }
        }
        $client->request($method, $path, $parameters, $files = array(), $server);
        $this->allCookies = $client->getCookieJar()->all();
        return $client->getInternalResponse()->getContent();
    }