diff --git a/core/modules/file/tests/src/Functional/SaveUploadFormTest.php b/core/modules/file/tests/src/Functional/SaveUploadFormTest.php index 88fc5eb458..1700834943 100644 --- a/core/modules/file/tests/src/Functional/SaveUploadFormTest.php +++ b/core/modules/file/tests/src/Functional/SaveUploadFormTest.php @@ -441,7 +441,7 @@ public function testCombinedErrorMessages() { 'extensions' => 'jpeg', ]; - $this->drupalPostForm('file-test/save_upload_from_form_test', $edit, t('Submit')); + $this->drupalPostFormWithInvalidOptions('file-test/save_upload_from_form_test', $edit, t('Submit')); $this->assertResponse(200, 'Received a 200 response for posted test file.'); $this->assertRaw(t('Epic upload FAIL!'), 'Found the failure message.');