diff --git a/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php b/core/modules/field/tests/src/Functional/Boolean/BooleanFormatterSettingsTest.php
similarity index 78%
rename from core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
rename to core/modules/field/tests/src/Functional/Boolean/BooleanFormatterSettingsTest.php
index 92efa9817b..7cad7bb783 100644
--- a/core/modules/field/src/Tests/Boolean/BooleanFormatterSettingsTest.php
+++ b/core/modules/field/tests/src/Functional/Boolean/BooleanFormatterSettingsTest.php
@@ -1,19 +1,18 @@
 <?php
 
-namespace Drupal\field\Tests\Boolean;
+namespace Drupal\Tests\field\Functional\Boolean;
 
 use Drupal\Component\Utility\Unicode;
-use Drupal\Component\Utility\SafeMarkup;
 use Drupal\field\Entity\FieldConfig;
 use Drupal\field\Entity\FieldStorageConfig;
-use Drupal\simpletest\WebTestBase;
+use Drupal\Tests\BrowserTestBase;
 
 /**
  * Tests the Boolean field formatter settings.
  *
  * @group field
  */
-class BooleanFormatterSettingsTest extends WebTestBase {
+class BooleanFormatterSettingsTest extends BrowserTestBase {
 
   /**
    * Modules to enable.
@@ -47,7 +46,14 @@ protected function setUp() {
     $type = $this->drupalCreateContentType(['name' => $type_name, 'type' => $type_name]);
     $this->bundle = $type->id();
 
-    $admin_user = $this->drupalCreateUser(['access content', 'administer content types', 'administer node fields', 'administer node display', 'bypass node access', 'administer nodes']);
+    $admin_user = $this->drupalCreateUser([
+      'access content',
+      'administer content types',
+      'administer node fields',
+      'administer node display',
+      'bypass node access',
+      'administer nodes',
+    ]);
     $this->drupalLogin($admin_user);
 
     $this->fieldName = Unicode::strtolower($this->randomMachineName(8));
@@ -90,10 +96,6 @@ public function testBooleanFormatterSettings() {
       'Custom',
     ];
 
-    // Define what the "default" option should look like, depending on the
-    // field settings.
-    $default = 'Field settings (@on / @off)';
-
     // For several different values of the field settings, test that the
     // options, including default, are shown correctly.
     $settings = [
@@ -108,22 +110,24 @@ public function testBooleanFormatterSettings() {
       $this->drupalPostForm(NULL, [
         'settings[on_label]' => $values[0],
         'settings[off_label]' => $values[1],
-      ], 'Save settings');
+      ], t('Save settings'));
 
       // Open the Manage Display page and trigger the field settings form.
       $this->drupalGet('admin/structure/types/manage/' . $this->bundle . '/display');
-      $this->drupalPostAjaxForm(NULL, [], $this->fieldName . '_settings_edit');
+      $this->drupalPostForm(NULL, [], $this->fieldName . '_settings_edit');
 
       // Test that the settings options are present in the correct format.
       foreach ($options as $string) {
         $this->assertText($string);
       }
-      $this->assertText(SafeMarkup::format($default, ['@on' => $values[0], '@off' => $values[1]]));
-    }
+      $this->assertText(t('Field settings (@on_label / @off_label)', ['@on_label' => $values[0], '@off_label' => $values[1]]));
 
-    foreach ($settings as $values) {
+      // Test that the settings summary are present in the correct format.
       $this->drupalGet('admin/structure/types/manage/' . $this->bundle . '/display');
-      $result = $this->xpath('//div[contains(@class, :class) and contains(text(), :text)]', [':class' => 'field-plugin-summary', ':text' => 'Display: TRUE / FALSE']);
+      $result = $this->xpath('//div[contains(@class, :class) and contains(text(), :text)]', [
+        ':class' => 'field-plugin-summary',
+        ':text' => (string) t('Display: @true_label / @false_label', ['@true_label' => $values[0], '@false_label' => $values[1]]),
+      ]);
       $this->assertEqual(count($result), 1, "Boolean formatter settings summary exist.");
     }
   }
