function AssertLegacyTrait::assertNotEqual

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

See also

\Drupal\simpletest\TestBase::assertNotEqual()

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

66 calls to AssertLegacyTrait::assertNotEqual()
AccessRoleTest::testRenderCaching in core/modules/user/tests/src/Functional/Views/AccessRoleTest.php
Tests access on render caching.
CacheTest::testTimeResultCachingWithFilter in core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
Tests result caching with filters.
ConfigEntityTest::testCRUD in core/modules/config/tests/src/Functional/ConfigEntityTest.php
Tests CRUD operations.
ConfigExportImportUITest::testExportImport in core/modules/config/tests/src/Functional/ConfigExportImportUITest.php
Tests a simple site export import case.
ConfigImportUITest::testImportLock in core/modules/config/tests/src/Functional/ConfigImportUITest.php
Tests concurrent importing of configuration.

... See full list

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.