protected function ApigeeEdgeFunctionalTestTrait::drupalGetNoMetaRefresh in Apigee Edge 8
The same as drupalGet(), but ignores the meta refresh.
Parameters
string $path: Url path.
array $options: Url options.
array $headers: Additional http headers.
Return value
string The retrieved HTML string, also available as $this->getRawContent()
1 call to ApigeeEdgeFunctionalTestTrait::drupalGetNoMetaRefresh()
- ConfigurationPermissionTest::assertPaths in tests/
src/ Functional/ ConfigurationPermissionTest.php - Checks access to the admin pages.
File
- tests/
src/ Traits/ ApigeeEdgeFunctionalTestTrait.php, line 216
Class
- ApigeeEdgeFunctionalTestTrait
- Provides common functionality for the Apigee Edge test classes.
Namespace
Drupal\Tests\apigee_edge\TraitsCode
protected function drupalGetNoMetaRefresh(string $path, array $options = [], array $headers = []) {
$options['absolute'] = TRUE;
$url = $this
->buildUrl($path, $options);
$session = $this
->getSession();
$this
->prepareRequest();
foreach ($headers as $header_name => $header_value) {
$session
->setRequestHeader($header_name, $header_value);
}
$session
->visit($url);
$out = $session
->getPage()
->getContent();
$this
->refreshVariables();
return $out;
}