You are here

protected function AssertLegacyTrait::assertNotIdentical in Drupal 8

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()

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);
}