protected function StandardInstallerTest::curlExec in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Installer/StandardInstallerTest.php \Drupal\system\Tests\Installer\StandardInstallerTest::curlExec()
Initializes and executes a cURL request.
Parameters
$curl_options: An associative array of cURL options to set, where the keys are constants defined by the cURL library. For a list of valid options, see http://www.php.net/manual/function.curl-setopt.php
$redirect: FALSE if this is an initial request, TRUE if this request is the result of a redirect.
Return value
The content returned from the call to curl_exec().
Overrides WebTestBase::curlExec
See also
curlInitialize()
File
- core/
modules/ system/ src/ Tests/ Installer/ StandardInstallerTest.php, line 46 - Contains \Drupal\system\Tests\Installer\StandardInstallerTest.
Class
- StandardInstallerTest
- Tests the interactive installer installing the standard profile.
Namespace
Drupal\system\Tests\InstallerCode
protected function curlExec($curl_options, $redirect = FALSE) {
// Ensure that we see the classy progress CSS on the batch page.
// Batch processing happens as part of HTTP redirects, so we can access the
// HTML of the batch page.
if (strpos($curl_options[CURLOPT_URL], '&id=1&op=do_nojs') !== FALSE) {
$this
->assertRaw('themes/classy/css/components/progress.css');
}
return parent::curlExec($curl_options, $redirect);
}