protected function AssertLegacyTrait::assertNotIdentical in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/AssertLegacyTrait.php \Drupal\KernelTests\AssertLegacyTrait::assertNotIdentical()
Deprecated
in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertNotSame() instead.
See also
\Drupal\simpletest\TestBase::assertNotIdentical()
https://www.drupal.org/node/3129738
1 call to AssertLegacyTrait::assertNotIdentical()
- KernelTestBaseTest::testAssertNotIdentical in core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php - Tests the deprecation of AssertLegacyTrait::assertNotIdentical.
File
- core/
tests/ Drupal/ KernelTests/ AssertLegacyTrait.php, line 78
Class
- AssertLegacyTrait
- Translates Simpletest assertion methods to PHPUnit.
Namespace
Drupal\KernelTestsCode
protected function assertNotIdentical($actual, $expected, $message = '') {
@trigger_error('AssertLegacyTrait::assertNotIdentical() is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertNotSame() instead. See https://www.drupal.org/node/3129738', E_USER_DEPRECATED);
$this
->assertNotSame($expected, $actual, (string) $message);
}