protected function FieldWebTest::assertNotSubString in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Functional/Handler/FieldWebTest.php \Drupal\Tests\views\Functional\Handler\FieldWebTest::assertNotSubString()
- 10 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.
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.
string $group: The type of assertion - examples are "Browser", "PHP".
2 calls to FieldWebTest::assertNotSubString()
- FieldWebTest::testAlterUrl in core/
modules/ views/ tests/ src/ Functional/ Handler/ FieldWebTest.php - Tests rewriting the output to a link.
- FieldWebTest::testTextRendering in core/
modules/ views/ tests/ src/ Functional/ Handler/ FieldWebTest.php - Tests trimming/read-more/ellipses.
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\HandlerCode
protected function assertNotSubString($haystack, $needle, $message = '', $group = 'Other') {
$this
->assertStringNotContainsString($needle, $haystack, $message);
}