function UiHelperTrait::isTestUsingGuzzleClient
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::isTestUsingGuzzleClient()
- 10 core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::isTestUsingGuzzleClient()
Determines if test is using DrupalTestBrowser.
Return value
bool TRUE if test is using DrupalTestBrowser.
4 calls to UiHelperTrait::isTestUsingGuzzleClient()
- BrowserTestBase::getHttpClient in core/
tests/ Drupal/ Tests/ BrowserTestBase.php - Obtain the HTTP client for the system under test.
- UiHelperTrait::click in core/
tests/ Drupal/ Tests/ UiHelperTrait.php - Clicks the element with the given CSS selector.
- UiHelperTrait::drupalGet in core/
tests/ Drupal/ Tests/ UiHelperTrait.php - Retrieves a Drupal path or an absolute path.
- UiHelperTrait::submitForm in core/
tests/ Drupal/ Tests/ UiHelperTrait.php - Fills and submits a form.
File
-
core/
tests/ Drupal/ Tests/ UiHelperTrait.php, line 586
Class
- UiHelperTrait
- Provides UI helper methods.
Namespace
Drupal\TestsCode
protected function isTestUsingGuzzleClient() {
$driver = $this->getSession()
->getDriver();
if ($driver instanceof BrowserKitDriver) {
return $driver->getClient() instanceof DrupalTestBrowser;
}
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.