diff --git a/core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php b/core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php index 48656b905ab2c27a12ed8a944d3ce62a43e95d15..3d4ff04143774104424fe1712fdc6472abe10c58 100644 --- a/core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php +++ b/core/tests/Drupal/Tests/Core/Form/FormAjaxResponseBuilderTest.php @@ -54,7 +54,6 @@ public function testBuildResponseNoTriggeringElement() { $form_state = new FormState(); $commands = []; - $expected = []; $this->expectException(HttpException::class); $this->formAjaxResponseBuilder->buildResponse($request, $form, $form_state, $commands); } @@ -73,7 +72,6 @@ public function testBuildResponseNoCallable() { $form_state->setTriggeringElement($triggering_element); $commands = []; - $expected = []; $this->expectException(HttpException::class); $this->formAjaxResponseBuilder->buildResponse($request, $form, $form_state, $commands); }