function FieldWebTest::assertSubString
Same name in other branches
- 9 core/modules/views/tests/src/Functional/Handler/FieldWebTest.php \Drupal\Tests\views\Functional\Handler\FieldWebTest::assertSubString()
- 8.9.x core/modules/views/tests/src/Functional/Handler/FieldWebTest.php \Drupal\Tests\views\Functional\Handler\FieldWebTest::assertSubString()
- 10 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.
2 calls to FieldWebTest::assertSubString()
- 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 151
Class
- FieldWebTest
- Tests fields from within a UI.
Namespace
Drupal\Tests\views\Functional\HandlerCode
protected function assertSubString(string $haystack, string $needle, string $message = '') : void {
$this->assertStringContainsString($needle, $haystack, $message);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.