You are here

protected function AssertLegacyTrait::assert in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/KernelTests/AssertLegacyTrait.php \Drupal\KernelTests\AssertLegacyTrait::assert()

Deprecated

Scheduled for removal in Drupal 9.0.0. Use self::assertTrue() instead.

See also

\Drupal\simpletest\TestBase::assert()

File

core/tests/Drupal/KernelTests/AssertLegacyTrait.php, line 27
Contains \Drupal\KernelTests\AssertLegacyTrait.

Class

AssertLegacyTrait
Translates Simpletest assertion methods to PHPUnit.

Namespace

Drupal\KernelTests

Code

protected function assert($actual, $message = '') {
  parent::assertTrue((bool) $actual, $message);
}