function AssertLegacyTrait::assertNotIdentical

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

See also

\Drupal\simpletest\TestBase::assertNotIdentical()

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

18 calls to AssertLegacyTrait::assertNotIdentical()
ConfigEntityNormalizeTest::testNormalize in core/tests/Drupal/KernelTests/Core/Config/ConfigEntityNormalizeTest.php
ConfigEntityStaticCacheTest::testConfigOverride in core/tests/Drupal/KernelTests/Core/Config/ConfigEntityStaticCacheTest.php
Tests that the static cache is sensitive to config overrides.
ConfigExportUITest::testExport in core/modules/config/tests/src/Functional/ConfigExportUITest.php
Tests export of configuration.
ConnectionTest::testConnectionClosing in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests the closing of a database connection.
ConnectionTest::testConnectionRouting in core/tests/Drupal/KernelTests/Core/Database/ConnectionTest.php
Tests that connections return appropriate connection objects.

... See full list

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.