You are here

protected function AssertLegacyTrait::assertIdentical in Zircon Profile 8

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

Deprecated

Scheduled for removal in Drupal 9.0.0. Use self::assertSame() instead.

See also

\Drupal\simpletest\TestBase::assertIdentical()

5 calls to AssertLegacyTrait::assertIdentical()
EntitySerializationTest::testDenormalize in core/modules/serialization/src/Tests/EntitySerializationTest.php
Tests denormalization of an entity.
EntitySerializationTest::testSerialize in core/modules/serialization/src/Tests/EntitySerializationTest.php
Test registered Serializer's entity serialization for core's formats.
EntitySerializationTest::testUserNormalize in core/modules/serialization/src/Tests/EntitySerializationTest.php
Tests user normalization, using the entity_serialization_test module to override some default access controls.
ModuleHandlerTest::testDependencyResolution in core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
Tests dependency resolution.
PhpStorageFactoryTest::testGetOverride in core/modules/system/tests/src/Kernel/PhpStorage/PhpStorageFactoryTest.php
Tests the get() method with overridden settings.

File

core/tests/Drupal/KernelTests/AssertLegacyTrait.php, line 81
Contains \Drupal\KernelTests\AssertLegacyTrait.

Class

AssertLegacyTrait
Translates Simpletest assertion methods to PHPUnit.

Namespace

Drupal\KernelTests

Code

protected function assertIdentical($actual, $expected, $message = '') {
  $this
    ->assertSame($expected, $actual, $message);
}