function FormAjaxSubscriberTest::testOnExceptionOtherClass
Tests on exception other class.
@legacy-covers ::onException
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ EventSubscriber/ FormAjaxSubscriberTest.php, line 138
Class
Namespace
Drupal\Tests\Core\Form\EventSubscriberCode
public function testOnExceptionOtherClass() : void {
$request = new Request();
$exception = new \Exception();
$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.