public function KernelTestBaseTest::testAssertIdentical in Drupal 9
Tests the deprecation of AssertLegacyTrait::assertIdentical.
@group legacy
File
- core/
tests/ Drupal/ KernelTests/ KernelTestBaseTest.php, line 387
Class
- KernelTestBaseTest
- @coversDefaultClass \Drupal\KernelTests\KernelTestBase
Namespace
Drupal\KernelTestsCode
public function testAssertIdentical() {
$this
->expectDeprecation('AssertLegacyTrait::assertIdentical() is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertSame() instead. See https://www.drupal.org/node/3129738');
$this
->assertIdentical('foo', 'foo');
}