diff --git a/core/modules/search/lib/Drupal/search/Tests/SearchCommentTest.php b/core/modules/search/lib/Drupal/search/Tests/SearchCommentTest.php
index 2957d11..ca967a5 100644
--- a/core/modules/search/lib/Drupal/search/Tests/SearchCommentTest.php
+++ b/core/modules/search/lib/Drupal/search/Tests/SearchCommentTest.php
@@ -20,9 +20,7 @@ class SearchCommentTest extends SearchTestBase {
    *
    * @var array
    */
-  public static $modules = array('comment');
-
-  protected $profile = 'standard';
+  public static $modules = array('filter', 'comment');
 
   protected $admin_user;
 
@@ -37,9 +35,16 @@ public static function getInfo() {
   function setUp() {
     parent::setUp();
 
+    $full_html_format = entity_create('filter_format', array(
+      'format' => 'full_html',
+      'name' => 'Full HTML',
+      'weight' => 1,
+      'filters' => array(),
+    ));
+    $full_html_format->save();
+
     // Create and log in an administrative user having access to the Full HTML
     // text format.
-    $full_html_format = entity_load('filter_format', 'full_html');
     $permissions = array(
       'administer filters',
       $full_html_format->getPermissionName(),
diff --git a/core/scripts/run-tests.sh b/core/scripts/run-tests.sh
index a953dd7..4b1a17a 100755
--- a/core/scripts/run-tests.sh
+++ b/core/scripts/run-tests.sh
@@ -64,7 +64,7 @@
   exit;
 }
 
-$test_list = simpletest_script_get_test_list();
+$test_list = array_fill(0, 1, 'Drupal\search\Tests\SearchCommentTest');
 
 // Try to allocate unlimited time to run the tests.
 drupal_set_time_limit(0);
