You are here

protected function FieldWebTest::assertNotSubString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Tests/Handler/FieldWebTest.php \Drupal\views\Tests\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".

Return value

bool TRUE if the assertion succeeded, FALSE otherwise.

2 calls to FieldWebTest::assertNotSubString()
FieldWebTest::testAlterUrl in core/modules/views/src/Tests/Handler/FieldWebTest.php
Tests rewriting the output to a link.
FieldWebTest::testTextRendering in core/modules/views/src/Tests/Handler/FieldWebTest.php
Tests trimming/read-more/ellipses.

File

core/modules/views/src/Tests/Handler/FieldWebTest.php, line 144
Contains \Drupal\views\Tests\Handler\FieldWebTest.

Class

FieldWebTest
Tests fields from within a UI.

Namespace

Drupal\views\Tests\Handler

Code

protected function assertNotSubString($haystack, $needle, $message = '', $group = 'Other') {
  return $this
    ->assertTrue(strpos($haystack, $needle) === FALSE, $message, $group);
}