function KernelTestBaseTest::testAssertNotEqual

Tests the deprecation of AssertLegacyTrait::assertNotEqual.

@group legacy

File

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

Class

KernelTestBaseTest
@coversDefaultClass \Drupal\KernelTests\KernelTestBase

Namespace

Drupal\KernelTests

Code

public function testAssertNotEqual() {
    $this->expectDeprecation('AssertLegacyTrait::assertNotEqual() is deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertNotEquals() instead. See https://www.drupal.org/node/3129738');
    $this->assertNotEqual('foo', 'bar');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.