You are here

protected function AssertLegacyTrait::assertIdentical in Drupal 8

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

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

See also

\Drupal\simpletest\TestBase::assertIdentical()

456 calls to AssertLegacyTrait::assertIdentical()
AccessRoleTest::testAccessRole in core/modules/user/tests/src/Functional/Views/AccessRoleTest.php
Tests role access plugin.
ActionTest::testDependencies in core/modules/system/tests/src/Kernel/Action/ActionTest.php
Tests the dependency calculation of actions.
AreaViewTest::testViewArea in core/modules/views/tests/src/Kernel/Handler/AreaViewTest.php
Tests the view area handler.
AttachedAssetsTest::testRenderOrder in core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
Tests JavaScript and CSS asset ordering.
AttachedAssetsTest::testSettings in core/tests/Drupal/KernelTests/Core/Asset/AttachedAssetsTest.php
Tests JavaScript settings.

... See full list

File

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

Class

AssertLegacyTrait
Translates Simpletest assertion methods to PHPUnit.

Namespace

Drupal\KernelTests

Code

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