You are here

protected function TestBase::pass in SimpleTest 8.3

Fire an assertion that is always positive.

Parameters

$message: (optional) A message to display with the assertion. Do not translate messages: use \Drupal\Component\Render\FormattableMarkup to embed variables in the message text, not t(). If left blank, a default message will be displayed.

$group: (optional) The group this message is in, which is displayed in a column in test output. Use 'Debug' to indicate this is debugging output. Do not translate this string. Defaults to 'Other'; most tests do not override this default.

Return value

TRUE.

15 calls to TestBase::pass()
BrokenSetUpTest::setUp in src/Tests/BrokenSetUpTest.php
Sets up a Drupal site for running functional and integration tests.
BrokenSetUpTest::tearDown in src/Tests/BrokenSetUpTest.php
Cleans up after testing.
BrokenSetUpTest::testMethod in src/Tests/BrokenSetUpTest.php
Runs this test case from within the simpletest child site.
KernelTestBase::disableModules in src/KernelTestBase.php
Disables modules for this test.
KernelTestBase::enableModules in src/KernelTestBase.php
Enables modules for this test.

... See full list

File

src/TestBase.php, line 793

Class

TestBase
Base class for Drupal tests.

Namespace

Drupal\simpletest

Code

protected function pass($message = NULL, $group = 'Other') {
  return $this
    ->assert(TRUE, $message, $group);
}