You are here

public static function AssertLegacyTrait::assertFalse in Zircon Profile 8.0

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

See also

\Drupal\simpletest\TestBase::assertFalse()

9 calls to AssertLegacyTrait::assertFalse()
EditorFilterIntegrationTest::testTextFormatIntegration in core/modules/editor/tests/src/Kernel/EditorFilterIntegrationTest.php
Tests text format removal or disabling.
EntitySerializationTest::testUserNormalize in core/modules/serialization/src/Tests/EntitySerializationTest.php
Tests user normalization, using the entity_serialization_test module to override some default access controls.
KernelTestBaseTest::testRegister in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
@covers ::register
KernelTestBaseTest::testSetUpDoesNotLeak in core/tests/Drupal/KernelTests/KernelTestBaseTest.php
@covers ::setUp @depends testSetUp
ModuleHandlerTest::testDependencyResolution in core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
Tests dependency resolution.

... See full list

File

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

Class

AssertLegacyTrait
Translates Simpletest assertion methods to PHPUnit.

Namespace

Drupal\KernelTests

Code

public static function assertFalse($actual, $message = '') {
  if (is_bool($actual)) {
    parent::assertFalse($actual, $message);
  }
  else {
    parent::assertEmpty($actual, $message);
  }
}