class WebAssert

Same name in this branch
  1. 8.9.x core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert
Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert
  2. 10 core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert
  3. 11.x core/tests/Drupal/Tests/WebAssert.php \Drupal\Tests\WebAssert

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

Hierarchy

  • class \Drupal\Tests\WebAssert extends \Behat\Mink\WebAssert
    • class \Drupal\simpletest\WebAssert extends \Drupal\Tests\WebAssert

Expanded class hierarchy of WebAssert

Deprecated

in drupal:8.1.1 and is removed from drupal:9.0.0. This was moved to another namespace.

See also

\Drupal\Tests

File

core/modules/simpletest/src/WebAssert.php, line 15

Namespace

Drupal\simpletest
View source
class WebAssert extends BaseWebAssert {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.