function AssertLegacyTrait::assertNotIdentical

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

Deprecated Scheduled for removal in Drupal 10.0.0. Use self::assertNotSame() instead.

See also

\Drupal\simpletest\TestBase::assertNotIdentical()

1 call to AssertLegacyTrait::assertNotIdentical()
EditorUpdateTest::testEditorUpdate8001 in core/modules/editor/tests/src/Functional/Update/EditorUpdateTest.php
Tests editor_update_8001().

File

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

Class

AssertLegacyTrait
Translates Simpletest assertion methods to PHPUnit.

Namespace

Drupal\KernelTests

Code

protected function assertNotIdentical($actual, $expected, $message = '') {
  $this->assertNotSame($expected, $actual, (string) $message);
}

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