diff --git a/core/modules/image/tests/src/Functional/ImageEffectsTest.php b/core/modules/image/tests/src/Functional/ImageEffectsTest.php
index e9cb157..54f3c96 100644
--- a/core/modules/image/tests/src/Functional/ImageEffectsTest.php
+++ b/core/modules/image/tests/src/Functional/ImageEffectsTest.php
@@ -3,7 +3,7 @@
 namespace Drupal\Tests\image\Functional;
 
 use Drupal\image\Entity\ImageStyle;
-use Drupal\system\Tests\Image\ToolkitTestBase;
+use Drupal\Tests\system\Functional\Image\ToolkitTestBase;
 
 /**
  * Tests that the image effects pass parameters to the toolkit correctly.
diff --git a/core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php b/core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php
index a28c786..a0f5080 100644
--- a/core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php
+++ b/core/modules/system/tests/modules/image_test/src/Plugin/ImageToolkit/TestToolkit.php
@@ -161,8 +161,8 @@ public function save($destination) {
    * @param array $args
    *   Values passed to hook.
    *
-   * @see \Drupal\system\Tests\Image\ToolkitTestBase::imageTestReset()
-   * @see \Drupal\system\Tests\Image\ToolkitTestBase::imageTestGetAllCalls()
+   * @see \Drupal\Tests\system\Functional\Image\ToolkitTestBase::imageTestReset()
+   * @see \Drupal\Tests\system\Functional\Image\ToolkitTestBase::imageTestGetAllCalls()
    */
   protected function logCall($op, $args) {
     $results = $this->state->get('image_test.results') ?: [];
diff --git a/core/modules/system/src/Tests/Image/ToolkitSetupFormTest.php b/core/modules/system/tests/src/Functional/Image/ToolkitSetupFormTest.php
similarity index 92%
rename from core/modules/system/src/Tests/Image/ToolkitSetupFormTest.php
rename to core/modules/system/tests/src/Functional/Image/ToolkitSetupFormTest.php
index 7dc9d33..75b559e 100644
--- a/core/modules/system/src/Tests/Image/ToolkitSetupFormTest.php
+++ b/core/modules/system/tests/src/Functional/Image/ToolkitSetupFormTest.php
@@ -1,15 +1,14 @@
 <?php
 
-namespace Drupal\system\Tests\Image;
-
-use Drupal\simpletest\WebTestBase;
+namespace Drupal\Tests\system\Functional\Image;
 
+use Drupal\FunctionalJavascriptTests\JavascriptTestBase;
 /**
  * Tests image toolkit setup form.
  *
  * @group Image
  */
-class ToolkitSetupFormTest extends WebTestBase {
+class ToolkitSetupFormTest extends JavascriptTestBase {
 
   /**
    * Admin user account.
diff --git a/core/modules/system/src/Tests/Image/ToolkitTest.php b/core/modules/system/tests/src/Functional/Image/ToolkitTest.php
similarity index 98%
rename from core/modules/system/src/Tests/Image/ToolkitTest.php
rename to core/modules/system/tests/src/Functional/Image/ToolkitTest.php
index f70c261..361b3a8 100644
--- a/core/modules/system/src/Tests/Image/ToolkitTest.php
+++ b/core/modules/system/tests/src/Functional/Image/ToolkitTest.php
@@ -1,6 +1,6 @@
 <?php
 
-namespace Drupal\system\Tests\Image;
+namespace Drupal\Tests\system\Functional\Image;
 
 /**
  * Tests image toolkit functions.
diff --git a/core/modules/system/src/Tests/Image/ToolkitTestBase.php b/core/modules/system/tests/src/Functional/Image/ToolkitTestBase.php
similarity index 96%
rename from core/modules/system/src/Tests/Image/ToolkitTestBase.php
rename to core/modules/system/tests/src/Functional/Image/ToolkitTestBase.php
index 0051e94..339d0c9 100644
--- a/core/modules/system/src/Tests/Image/ToolkitTestBase.php
+++ b/core/modules/system/tests/src/Functional/Image/ToolkitTestBase.php
@@ -1,14 +1,14 @@
 <?php
 
-namespace Drupal\system\Tests\Image;
+namespace Drupal\Tests\system\Functional\Image;
 
-use Drupal\simpletest\WebTestBase;
+use Drupal\FunctionalJavascriptTests\JavascriptTestBase;
 use Drupal\Component\Utility\SafeMarkup;
 
 /**
  * Base class for image manipulation testing.
  */
-abstract class ToolkitTestBase extends WebTestBase {
+abstract class ToolkitTestBase extends JavascriptTestBase {
 
   /**
    * Modules to enable.
