diff --git a/core/modules/system/lib/Drupal/system/Tests/Form/FormTest.php b/core/modules/system/lib/Drupal/system/Tests/Form/FormTest.php index 2ccc6c0..7903a2c 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Form/FormTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Form/FormTest.php @@ -294,8 +294,8 @@ function testCheckboxProcessing() { * Tests validation of #type 'select' elements. */ function testSelect() { - $form = $form_state = array(); - $form = form_test_select($form, $form_state); + $form = array(); + $form = \Drupal::formBuilder()->getForm('Drupal\form_test\Form\TestSelect'); $error = '!name field is required.'; $this->drupalGet('form-test/select');