You are here

public function KernelTestBaseTest::testAssertNotIdentical in Drupal 9

Tests the deprecation of AssertLegacyTrait::assertNotIdentical.

@group legacy

File

core/tests/Drupal/KernelTests/KernelTestBaseTest.php, line 397

Class

KernelTestBaseTest
@coversDefaultClass \Drupal\KernelTests\KernelTestBase

Namespace

Drupal\KernelTests

Code

public function testAssertNotIdentical() {
  $this
    ->expectDeprecation('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');
  $this
    ->assertNotIdentical('foo', 'bar');
}