protected function AssertLegacyTrait::assertEqual in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/AssertLegacyTrait.php \Drupal\KernelTests\AssertLegacyTrait::assertEqual()
Deprecated Scheduled for removal in Drupal 10.0.0. Use self::assertEquals() instead.
See also
\Drupal\simpletest\TestBase::assertEqual()
1247 calls to AssertLegacyTrait::assertEqual()
- AccessDeniedTest::testAccessDenied in core/
modules/ system/ tests/ src/ Functional/ System/ AccessDeniedTest.php - AccessRoleTest::testRenderCaching in core/
modules/ user/ tests/ src/ Functional/ Views/ AccessRoleTest.php - Tests access on render caching.
- AccessRoleUITest::testAccessRoleUI in core/
modules/ user/ tests/ src/ Functional/ AccessRoleUITest.php - Tests the role access plugin UI.
- AccountSwitcherTest::testAccountSwitching in core/
tests/ Drupal/ KernelTests/ Core/ Session/ AccountSwitcherTest.php - ActionTest::testOperations in core/
modules/ system/ tests/ src/ Kernel/ Action/ ActionTest.php - Tests the functionality of test actions.
File
- core/
tests/ Drupal/ KernelTests/ AssertLegacyTrait.php, line 36
Class
- AssertLegacyTrait
- Translates Simpletest assertion methods to PHPUnit.
Namespace
Drupal\KernelTestsCode
protected function assertEqual($actual, $expected, $message = '') {
$this
->assertEquals($expected, $actual, (string) $message);
}