function WebAssert::__construct
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert::__construct()
- 10 core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert::__construct()
- 9 core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert::__construct()
- 8.9.x core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert::__construct()
Constructor.
Parameters
\Behat\Mink\Session $session: The Behat session object.
string $baseUrl: The base URL of the site under test.
File
-
core/
tests/ Drupal/ Tests/ WebAssert.php, line 35
Class
- WebAssert
- Defines a class with methods for asserting presence of elements during tests.
Namespace
Drupal\TestsCode
public function __construct(Session $session, protected $baseUrl = '') {
parent::__construct($session);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.