You are here

protected function UncaughtExceptionTest::assertRaw in Drupal 8

Passes if the raw text IS 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()->responseContains() instead.

Overrides AssertLegacyTrait::assertRaw

6 calls to UncaughtExceptionTest::assertRaw()
UncaughtExceptionTest::testErrorContainer in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Tests a container which has an error.
UncaughtExceptionTest::testExceptionContainer in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Tests a container which has an exception really early.
UncaughtExceptionTest::testLoggerException in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Tests fallback to PHP error log when an exception is thrown while logging.
UncaughtExceptionTest::testLostDatabaseConnection in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Tests the case when the database connection is gone.
UncaughtExceptionTest::testMissingDependency in core/tests/Drupal/FunctionalTests/Bootstrap/UncaughtExceptionTest.php
Tests a missing dependency on a service.

... See full list

File

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

Class

UncaughtExceptionTest
Tests kernel panic when things are really messed up.

Namespace

Drupal\FunctionalTests\Bootstrap

Code

protected function assertRaw($text) {
  $this
    ->assertText($text);
}