Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / system / src / Tests / Form / StateValuesCleanAdvancedTest.php
diff --git a/web/core/modules/system/src/Tests/Form/StateValuesCleanAdvancedTest.php b/web/core/modules/system/src/Tests/Form/StateValuesCleanAdvancedTest.php
deleted file mode 100644 (file)
index 976209e..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-
-namespace Drupal\system\Tests\Form;
-
-use Drupal\simpletest\WebTestBase;
-
-/**
- * Tests proper removal of submitted form values using
- * \Drupal\Core\Form\FormState::cleanValues() when having forms with elements
- * containing buttons like "managed_file".
- *
- * @group Form
- */
-class StateValuesCleanAdvancedTest extends WebTestBase {
-
-  /**
-   * Modules to enable.
-   *
-   * @var array
-   */
-  public static $modules = ['file', 'form_test'];
-
-  /**
-   * An image file path for uploading.
-   */
-  protected $image;
-
-  /**
-   * Tests \Drupal\Core\Form\FormState::cleanValues().
-   */
-  public function testFormStateValuesCleanAdvanced() {
-
-    // Get an image for uploading.
-    $image_files = $this->drupalGetTestFiles('image');
-    $this->image = current($image_files);
-
-    // Check if the physical file is there.
-    $this->assertTrue(is_file($this->image->uri), "The image file we're going to upload exists.");
-
-    // "Browse" for the desired file.
-    $edit = ['files[image]' => drupal_realpath($this->image->uri)];
-
-    // Post the form.
-    $this->drupalPostForm('form_test/form-state-values-clean-advanced', $edit, t('Submit'));
-
-    // Expecting a 200 HTTP code.
-    $this->assertResponse(200, 'Received a 200 response for posted test file.');
-    $this->assertRaw(t('You WIN!'), 'Found the success message.');
-  }
-
-}