Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / src / Functional / Form / FormObjectTest.php
index 34ebb2e79ad1f4a0f38a007412c088f2ca5a89de..e2c00f5d17a8734aba9f1d543ff91ae48fb6f468 100644 (file)
@@ -2,15 +2,14 @@
 
 namespace Drupal\Tests\system\Functional\Form;
 
-use Drupal\system\Tests\System\SystemConfigFormTestBase;
-use Drupal\form_test\FormTestObject;
+use Drupal\Tests\BrowserTestBase;
 
 /**
  * Tests building a form from an object.
  *
  * @group Form
  */
-class FormObjectTest extends SystemConfigFormTestBase {
+class FormObjectTest extends BrowserTestBase {
 
   /**
    * Modules to enable.
@@ -19,19 +18,6 @@ class FormObjectTest extends SystemConfigFormTestBase {
    */
   public static $modules = ['form_test'];
 
-  protected function setUp() {
-    parent::setUp();
-
-    $this->form = new FormTestObject($this->container->get('config.factory'));
-    $this->values = [
-      'bananas' => [
-        '#value' => $this->randomString(10),
-        '#config_name' => 'form_test.object',
-        '#config_key' => 'bananas',
-      ],
-    ];
-  }
-
   /**
    * Tests using an object as the form callback.
    *