You are here

public function WebAssert::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert::__construct()

Constructor.

Parameters

\Behat\Mink\Session $session: The Behat session object;

string $base_url: The base URL of the site under test.

File

core/tests/Drupal/Tests/WebAssert.php, line 41

Class

WebAssert
Defines a class with methods for asserting presence of elements during tests.

Namespace

Drupal\Tests

Code

public function __construct(Session $session, $base_url = '') {
  parent::__construct($session);
  $this->baseUrl = $base_url;
}