diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php
index a2e5dfd..ec07671 100644
--- a/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php
+++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentInterfaceTest.php
@@ -8,6 +8,7 @@
 namespace Drupal\comment\Tests;
 
 class CommentInterfaceTest extends CommentTestBase {
+
   public static function getInfo() {
     return array(
       'name' => 'Comment interface',
@@ -16,6 +17,13 @@ public static function getInfo() {
     );
   }
 
+  function setUp() {
+    parent::setUp();
+
+    // Use the node listing as the front page.
+    config('system.site')->set('page.front', 'node')->save();
+  }
+
   /**
    * Tests the comment interface.
    */
diff --git a/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php b/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php
index 60216ab..52fccde 100644
--- a/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php
+++ b/core/modules/comment/lib/Drupal/comment/Tests/CommentTestBase.php
@@ -17,9 +17,7 @@
    *
    * @var array
    */
-  public static $modules = array('comment', 'search');
-
-  protected $profile = 'standard';
+  public static $modules = array('comment', 'search', 'node', 'block');
 
   protected $admin_user;
   protected $web_user;
@@ -28,9 +26,29 @@
   function setUp() {
     parent::setUp();
 
+    // Create the article content type.
+    $this->drupalCreateContentType(array('type' => 'article', 'name' => t('Article')));
+
     // Create users and test node.
-    $this->admin_user = $this->drupalCreateUser(array('administer content types', 'administer comments', 'administer blocks'));
-    $this->web_user = $this->drupalCreateUser(array('access comments', 'post comments', 'create article content', 'edit own comments'));
+    $this->admin_user = $this->drupalCreateUser(array(
+      'administer content types',
+      'administer comments',
+      'administer blocks',
+      'skip comment approval',
+      'post comments',
+      'access comments',
+      'access content',
+     ));
+    $this->web_user = $this->drupalCreateUser(array(
+      'access comments',
+      'post comments',
+      'create article content',
+      'edit own comments',
+      'post comments',
+      'skip comment approval',
+      'access comments',
+      'access content',
+    ));
     $this->node = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1, 'uid' => $this->web_user->uid));
   }
 
