You are here

protected function FieldWebTest::assertNotSubString 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::assertNotSubString()
  2. 9 core/modules/views/tests/src/Functional/Handler/FieldWebTest.php \Drupal\Tests\views\Functional\Handler\FieldWebTest::assertNotSubString()

Assertion helper which checks whether a string is not 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 163

Class

FieldWebTest
Tests fields from within a UI.

Namespace

Drupal\Tests\views\Functional\Handler

Code

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