function UncaughtExceptionTest::assertResponse
Overrides AssertLegacyTrait::assertResponse
9 calls to UncaughtExceptionTest::assertResponse()
- 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.
File
-
core/
tests/ Drupal/ FunctionalTests/ Bootstrap/ UncaughtExceptionTest.php, line 366
Class
- UncaughtExceptionTest
- Tests kernel panic when things are really messed up.
Namespace
Drupal\FunctionalTests\BootstrapCode
protected function assertResponse($code) {
$this->assertSame($code, $this->info['http_code']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.