function FormAjaxSubscriberTest::testOnExceptionNestedWrongException
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php \Drupal\Tests\Core\Form\EventSubscriber\FormAjaxSubscriberTest::testOnExceptionNestedWrongException()
- 8.9.x core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php \Drupal\Tests\Core\Form\EventSubscriber\FormAjaxSubscriberTest::testOnExceptionNestedWrongException()
- 10 core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php \Drupal\Tests\Core\Form\EventSubscriber\FormAjaxSubscriberTest::testOnExceptionNestedWrongException()
@covers ::getFormAjaxException
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ EventSubscriber/ FormAjaxSubscriberTest.php, line 236
Class
- FormAjaxSubscriberTest
- @coversDefaultClass \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber @group EventSubscriber
Namespace
Drupal\Tests\Core\Form\EventSubscriberCode
public function testOnExceptionNestedWrongException() : void {
$nested_exception = new \Exception();
$exception = new \Exception('', 0, $nested_exception);
$request = new Request();
$this->formAjaxResponseBuilder
->expects($this->never())
->method('buildResponse');
$this->assertResponseFromException($request, $exception, NULL);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.