function AssertLegacyTrait::assertEqual

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

See also

\Drupal\simpletest\TestBase::assertEqual()

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

1246 calls to AssertLegacyTrait::assertEqual()
AccessDeniedTest::testAccessDenied in core/modules/system/tests/src/Functional/System/AccessDeniedTest.php
AccessRoleTest::testRenderCaching in core/modules/user/tests/src/Functional/Views/AccessRoleTest.php
Tests access on render caching.
AccessRoleUITest::testAccessRoleUI in core/modules/user/tests/src/Functional/AccessRoleUITest.php
Tests the role access plugin UI.
AccountSwitcherTest::testAccountSwitching in core/tests/Drupal/KernelTests/Core/Session/AccountSwitcherTest.php
ActionTest::testOperations in core/modules/system/tests/src/Kernel/Action/ActionTest.php
Tests the functionality of test actions.

... See full list

File

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

Class

AssertLegacyTrait
Translates Simpletest assertion methods to PHPUnit.

Namespace

Drupal\KernelTests

Code

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

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