function AssertLegacyTrait::assertEqual
Same name in other branches
- 8.9.x core/tests/Drupal/KernelTests/AssertLegacyTrait.php \Drupal\KernelTests\AssertLegacyTrait::assertEqual()
Deprecated
in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertEquals() instead.
See also
\Drupal\simpletest\TestBase::assertEqual()
https://www.drupal.org/node/3129738
1 call to AssertLegacyTrait::assertEqual()
- KernelTestBaseTest::testAssertEqual in core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php - Tests the deprecation of AssertLegacyTrait::assertEqual.
File
-
core/
tests/ Drupal/ KernelTests/ AssertLegacyTrait.php, line 39
Class
- AssertLegacyTrait
- Translates Simpletest assertion methods to PHPUnit.
Namespace
Drupal\KernelTestsCode
protected function assertEqual($actual, $expected, $message = '') {
@trigger_error('AssertLegacyTrait::assertEqual() is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertEquals() instead. See https://www.drupal.org/node/3129738', E_USER_DEPRECATED);
$this->assertEquals($expected, $actual, (string) $message);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.