function AssertLegacyTrait::assertNotEqual

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

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

See also

\Drupal\simpletest\TestBase::assertNotEqual()

5 calls to AssertLegacyTrait::assertNotEqual()
LanguageUrlRewritingTest::checkUrl in core/modules/language/tests/src/Functional/LanguageUrlRewritingTest.php
Check URL rewriting for the given language.
NodeRevisionsUiTest::testNodeFormSaveWithoutRevision in core/modules/node/tests/src/Functional/NodeRevisionsUiTest.php
Checks that unchecking 'Create new revision' works when editing a node.
UserPermissionsTest::testUserPermissionChanges in core/modules/user/tests/src/Functional/UserPermissionsTest.php
Test changing user permissions through the permissions page.
UserPermissionsTest::testUserRoleChangePermissions in core/modules/user/tests/src/Functional/UserPermissionsTest.php
Verify proper permission changes by user_role_change_permissions().
WidgetPluginManagerTest::testNotApplicableFallback in core/modules/field/tests/src/Kernel/WidgetPluginManagerTest.php
Tests that getInstance falls back on default if current is not applicable.

File

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

Class

AssertLegacyTrait
Translates Simpletest assertion methods to PHPUnit.

Namespace

Drupal\KernelTests

Code

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

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