protected function AssertLegacyTrait::assertEqual in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/KernelTests/AssertLegacyTrait.php \Drupal\KernelTests\AssertLegacyTrait::assertEqual()
Deprecated
Scheduled for removal in Drupal 9.0.0. Use self::assertEquals() instead.
See also
\Drupal\simpletest\TestBase::assertEqual()
6 calls to AssertLegacyTrait::assertEqual()
- EntityResolverTest::testUuidEntityResolver in core/
modules/ serialization/ src/ Tests/ EntityResolverTest.php - Test that fields referencing UUIDs can be denormalized.
- EntitySerializationTest::testNormalize in core/
modules/ serialization/ src/ Tests/ EntitySerializationTest.php - Test the normalize function.
- ModuleHandlerTest::assertModuleList in core/
modules/ system/ tests/ src/ Kernel/ Extension/ ModuleHandlerTest.php - Assert that the extension handler returns the expected values.
- ModuleHandlerTest::testDependencyResolution in core/
modules/ system/ tests/ src/ Kernel/ Extension/ ModuleHandlerTest.php - Tests dependency resolution.
- ModuleHandlerTest::testUninstallContentDependency in core/
modules/ system/ tests/ src/ Kernel/ Extension/ ModuleHandlerTest.php - Tests uninstalling a module that has content.
File
- core/
tests/ Drupal/ KernelTests/ AssertLegacyTrait.php, line 61 - Contains \Drupal\KernelTests\AssertLegacyTrait.
Class
- AssertLegacyTrait
- Translates Simpletest assertion methods to PHPUnit.
Namespace
Drupal\KernelTestsCode
protected function assertEqual($actual, $expected, $message = '') {
$this
->assertEquals($expected, $actual, $message);
}