public function FormAjaxSubscriberTest::testOnExceptionOtherClass in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php \Drupal\Tests\Core\Form\EventSubscriber\FormAjaxSubscriberTest::testOnExceptionOtherClass()
- 10 core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php \Drupal\Tests\Core\Form\EventSubscriber\FormAjaxSubscriberTest::testOnExceptionOtherClass()
@covers ::onException
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ EventSubscriber/ FormAjaxSubscriberTest.php, line 120
Class
- FormAjaxSubscriberTest
- @coversDefaultClass \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber @group EventSubscriber
Namespace
Drupal\Tests\Core\Form\EventSubscriberCode
public function testOnExceptionOtherClass() {
$request = new Request();
$exception = new \Exception();
$this->formAjaxResponseBuilder
->expects($this
->never())
->method('buildResponse');
$this
->assertResponseFromException($request, $exception, NULL);
}