public static function AssertLegacyTrait::assertTrue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/KernelTests/AssertLegacyTrait.php \Drupal\KernelTests\AssertLegacyTrait::assertTrue()
See also
\Drupal\simpletest\TestBase::assertTrue()
19 calls to AssertLegacyTrait::assertTrue()
- AliasStorageTest::testAliasExists in core/
tests/ Drupal/ KernelTests/ Core/ Path/ AliasStorageTest.php - @covers ::aliasExists
- AssertLegacyTrait::pass in core/
tests/ Drupal/ KernelTests/ AssertLegacyTrait.php - DbImportCommandTest::testDbImportCommand in core/
modules/ system/ tests/ src/ Kernel/ Scripts/ DbImportCommandTest.php - Test the command directly.
- EditorFilterIntegrationTest::testTextFormatIntegration in core/
modules/ editor/ tests/ src/ Kernel/ EditorFilterIntegrationTest.php - Tests text format removal or disabling.
- EntityReferenceSelectionReferenceableTest::testReferenceablesWithNoLabelKey in core/
modules/ system/ tests/ src/ Kernel/ Entity/ EntityReferenceSelectionReferenceableTest.php - Tests values returned by SelectionInterface::getReferenceableEntities() when the target entity type has no 'label' key.
File
- core/
tests/ Drupal/ KernelTests/ AssertLegacyTrait.php, line 34 - Contains \Drupal\KernelTests\AssertLegacyTrait.
Class
- AssertLegacyTrait
- Translates Simpletest assertion methods to PHPUnit.
Namespace
Drupal\KernelTestsCode
public static function assertTrue($actual, $message = '') {
if (is_bool($actual)) {
parent::assertTrue($actual, $message);
}
else {
parent::assertNotEmpty($actual, $message);
}
}