phpbb_functional_test_case::request PHP Method

request() public static method

Perform a request to page
public static request ( string $method, string $path, array $form_data = [], boolean $assert_response_html = true ) : Symfony\Component\DomCrawler\Crawler
$method string HTTP Method
$path string Page path, relative from phpBB root path
$form_data array An array of form field values
$assert_response_html boolean Should we perform standard assertions for a normal html page
return Symfony\Component\DomCrawler\Crawler
    public static function request($method, $path, $form_data = array(), $assert_response_html = true)
    {
        $crawler = self::$client->request($method, self::$root_url . $path, $form_data);
        if ($assert_response_html) {
            self::assert_response_html();
        }
        return $crawler;
    }