You are here

protected function UncaughtExceptionTest::assertNoRaw in Drupal 8

Passes if the raw text IS not found on the loaded page, fail otherwise.

Raw text refers to the raw HTML that the page generated.

Parameters

string $raw: Raw (HTML) string to look for.

Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseNotContains() instead.

Overrides AssertLegacyTrait::assertNoRaw

1 call to UncaughtExceptionTest::assertNoRaw()
UncaughtExceptionTest::testUncaughtFatalError in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Tests displaying an uncaught fatal error.

File

core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php, line 394

Class

UncaughtExceptionTest
Tests kernel panic when things are really messed up.

Namespace

Drupal\FunctionalTests\Bootstrap

Code

protected function assertNoRaw($text) {
  $this
    ->assertNoText($text);
}