You are here

protected function TestBase::assertStatusMessage in Double Field 4.x

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/TestBase.php \Drupal\Tests\double_field\Functional\TestBase::assertStatusMessage()

Passes if a given status message was found on the page.

2 calls to TestBase::assertStatusMessage()
FieldTypeTest::testAllowedValuesValidation in tests/src/Functional/FieldTypeTest.php
Test allowed values validation.
FieldTypeTest::testFieldStorageSettingsForm in tests/src/Functional/FieldTypeTest.php
Test field storage settings form.

File

tests/src/Functional/TestBase.php, line 276

Class

TestBase
Tests the creation of text fields.

Namespace

Drupal\Tests\double_field\Functional

Code

protected function assertStatusMessage(string $message) : void {
  $messages = $this
    ->getMessages('status');
  self::assertTrue(in_array($message, $messages), 'Status message was found.');
}