You are here

protected function FieldWebTest::assertSubString in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Functional/Handler/FieldWebTest.php \Drupal\Tests\views\Functional\Handler\FieldWebTest::assertSubString()
  2. 9 core/modules/views/tests/src/Functional/Handler/FieldWebTest.php \Drupal\Tests\views\Functional\Handler\FieldWebTest::assertSubString()

Assertion helper which checks whether a string is part of another string.

@internal

Parameters

string $haystack: The value to search in.

string $needle: The value to search for.

string $message: The message to display along with the assertion.

File

core/modules/views/tests/src/Functional/Handler/FieldWebTest.php, line 147

Class

FieldWebTest
Tests fields from within a UI.

Namespace

Drupal\Tests\views\Functional\Handler

Code

protected function assertSubString(string $haystack, string $needle, string $message = '') : void {
  $this
    ->assertStringContainsString($needle, $haystack, $message);
}