public function FormAjaxResponseBuilderTest::testBuildResponseNoCallable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php \Drupal\Tests\Core\Form\FormAjaxResponseBuilderTest::testBuildResponseNoCallable()
@covers ::buildResponse
@expectedException \Symfony\Component\HttpKernel\Exception\HttpException
File
- core/
tests/ Drupal/ Tests/ Core/ Form/ FormAjaxResponseBuilderTest.php, line 72 - Contains \Drupal\Tests\Core\Form\FormAjaxResponseBuilderTest.
Class
- FormAjaxResponseBuilderTest
- @coversDefaultClass \Drupal\Core\Form\FormAjaxResponseBuilder @group Form
Namespace
Drupal\Tests\Core\FormCode
public function testBuildResponseNoCallable() {
$this->renderer
->expects($this
->never())
->method('renderResponse');
$request = new Request();
$form = [];
$form_state = new FormState();
$triggering_element = [];
$form_state
->setTriggeringElement($triggering_element);
$commands = [];
$expected = [];
$this
->assertSame($expected, $this->formAjaxResponseBuilder
->buildResponse($request, $form, $form_state, $commands));
}