function FormAjaxSubscriberTest::testOnExceptionOtherClass

@covers ::onException

File

core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php, line 129

Class

FormAjaxSubscriberTest
@coversDefaultClass \Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber[[api-linebreak]] @group EventSubscriber

Namespace

Drupal\Tests\Core\Form\EventSubscriber

Code

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.