diff --git a/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php b/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php index acd255ba27..e1b73de03c 100644 --- a/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php +++ b/core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php @@ -140,12 +140,12 @@ public function testSetElementErrorsFromFormState() { } /** - * Test that Quick Edit forms show non-inline errors. + * Test that opting out for inline form errors works. * * @covers ::handleFormErrors * @covers ::displayErrorMessages */ - public function testDisplayErrorMessagesNotInlineQuickEdit() { + public function testDisplayErrorMessagesNotInline() { $form_error_handler = $this->getMockBuilder(FormErrorHandler::class) ->setConstructorArgs([$this->getStringTranslationStub(), $this->getMock(LinkGeneratorInterface::class), $this->getMock(RendererInterface::class)]) ->setMethods(['drupalSetMessage']) @@ -157,7 +157,7 @@ public function testDisplayErrorMessagesNotInlineQuickEdit() { $form = [ '#parents' => [], - '#form_id' => 'quickedit_field_form', + '#disable_inline_form_errors' => TRUE, '#array_parents' => [], ]; $form['test'] = [