function FormAjaxResponseBuilderTest::testBuildResponseNoTriggeringElement
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php \Drupal\Tests\Core\Form\FormAjaxResponseBuilderTest::testBuildResponseNoTriggeringElement()
- 8.9.x core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php \Drupal\Tests\Core\Form\FormAjaxResponseBuilderTest::testBuildResponseNoTriggeringElement()
- 11.x core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php \Drupal\Tests\Core\Form\FormAjaxResponseBuilderTest::testBuildResponseNoTriggeringElement()
@covers ::buildResponse
File
-
core/
tests/ Drupal/ Tests/ Core/ Form/ FormAjaxResponseBuilderTest.php, line 50
Class
- FormAjaxResponseBuilderTest
- @coversDefaultClass \Drupal\Core\Form\FormAjaxResponseBuilder @group Form
Namespace
Drupal\Tests\Core\FormCode
public function testBuildResponseNoTriggeringElement() : void {
$this->renderer
->expects($this->never())
->method('renderResponse');
$request = new Request();
$form = [];
$form_state = new FormState();
$commands = [];
$this->expectException(HttpException::class);
$this->formAjaxResponseBuilder
->buildResponse($request, $form, $form_state, $commands);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.