You are here

protected function AssertLegacyTrait::assertNotEqual in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/AssertLegacyTrait.php \Drupal\KernelTests\AssertLegacyTrait::assertNotEqual()

Deprecated

in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertNotEquals() instead.

See also

\Drupal\simpletest\TestBase::assertNotEqual()

https://www.drupal.org/node/3129738

1 call to AssertLegacyTrait::assertNotEqual()
KernelTestBaseTest::testAssertNotEqual in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
Tests the deprecation of AssertLegacyTrait::assertNotEqual.

File

core/tests/Drupal/KernelTests/AssertLegacyTrait.php, line 52

Class

AssertLegacyTrait
Translates Simpletest assertion methods to PHPUnit.

Namespace

Drupal\KernelTests

Code

protected function assertNotEqual($actual, $expected, $message = '') {
  @trigger_error('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', E_USER_DEPRECATED);
  $this
    ->assertNotEquals($expected, $actual, (string) $message);
}