protected function AssertLegacyTrait::assert in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/AssertLegacyTrait.php \Drupal\KernelTests\AssertLegacyTrait::assert()
Deprecated Scheduled for removal in Drupal 10.0.0. Use self::assertTrue() instead.
See also
\Drupal\simpletest\TestBase::assert()
27 calls to AssertLegacyTrait::assert()
- AggregatorRenderingTest::testBlockLinks in core/
modules/ aggregator/ tests/ src/ Functional/ AggregatorRenderingTest.php - Adds a feed block to the page and checks its links.
- AggregatorTestBase::createFeed in core/
modules/ aggregator/ tests/ src/ Functional/ AggregatorTestBase.php - Creates an aggregator feed.
- ConfigExportUITest::testExport in core/
modules/ config/ tests/ src/ Functional/ ConfigExportUITest.php - Tests export of configuration.
- ContactSitewideTest::testSiteWideContact in core/
modules/ contact/ tests/ src/ Functional/ ContactSitewideTest.php - Tests configuration options and the site-wide contact form.
- DatabaseLegacyTest::testDbSetActive in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DatabaseLegacyTest.php - Tests the db_set_active() function.
File
- core/
tests/ Drupal/ KernelTests/ AssertLegacyTrait.php, line 26
Class
- AssertLegacyTrait
- Translates Simpletest assertion methods to PHPUnit.
Namespace
Drupal\KernelTestsCode
protected function assert($actual, $message = '') {
parent::assertTrue((bool) $actual, $message);
}