diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentPreviewTest.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentPreviewTest.php
index bf1cf6b..fcdb3bb 100644
--- a/core/modules/comment/lib/Drupal/comment/Tests/CommentPreviewTest.php
+++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentPreviewTest.php
@@ -17,11 +17,11 @@
 class CommentPreviewTest extends CommentTestBase {
 
   /**
-   * Use the standard profile.
+   * Modules to enable.
    *
-   * @var string
+   * @var array
    */
-  protected $profile = 'standard';
+  public static $modules = array('comment', 'datetime', 'image', 'taxonomy');
 
   public static function getInfo() {
     return array(
@@ -32,6 +32,31 @@ public static function getInfo() {
   }
 
   /**
+   * {@inheritdoc}
+   */
+  public function setUp() {
+    parent::setUp();
+    user_install_picture_field();
+    config('user.settings')->set('signatures', TRUE);
+    $filtered_html_format = entity_create('filter_format', array(
+      'format' => 'filtered_html_format',
+      'name' => 'Filtered HTML',
+      'weight' => -1,
+      'filters' => array(
+        'filter_html' => array(
+          'module' => 'filter',
+          'status' => '1',
+          'settings' => array(
+            'allowed_html' => '<a> <em> <strong>',
+          ),
+        ),
+      ),
+    ));
+    $filtered_html_format->save();
+    user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array(filter_permission_name($filtered_html_format)));
+  }
+
+  /**
    * Tests comment preview.
    */
   function testCommentPreview() {
* Unmerged path core/modules/datetime/datetime.module
