diff --git a/core/modules/comment/src/Tests/Views/CommentUserNameTest.php b/core/modules/comment/src/Tests/Views/CommentUserNameTest.php
index e26d7dc..cbe58a9 100644
--- a/core/modules/comment/src/Tests/Views/CommentUserNameTest.php
+++ b/core/modules/comment/src/Tests/Views/CommentUserNameTest.php
@@ -9,10 +9,7 @@
 
 use Drupal\comment\Entity\Comment;
 use Drupal\Core\Session\AnonymousUserSession;
-use Drupal\user\Entity\Role;
-use Drupal\user\Entity\User;
 use Drupal\views\Entity\View;
-use Drupal\views\Tests\ViewKernelTestBase;
 use Drupal\views\Views;
 
 /**
@@ -20,18 +17,12 @@
  *
  * @group comment
  */
-class CommentUserNameTest extends ViewKernelTestBase {
+class CommentUserNameTest extends CommentViewKernelTestBase {
 
   /**
-   * Admin user.
-   *
-   * @var \Drupal\user\UserInterface
-   */
-  protected $adminUser;
-  /**
    * {@inheritdoc}
    */
-  public static $modules = ['user', 'comment', 'entity_test'];
+  public static $modules = ['entity_test'];
 
   /**
    * {@inheritdoc}
@@ -39,39 +30,6 @@ class CommentUserNameTest extends ViewKernelTestBase {
   protected function setUp($import_test_views = TRUE) {
     parent::setUp($import_test_views);
 
-    $this->installEntitySchema('user');
-    $this->installEntitySchema('comment');
-    // Create the anonymous role.
-    $this->installConfig(['user']);
-
-    // Create an anonymous user.
-    $storage = \Drupal::entityManager()->getStorage('user');
-    // Insert a row for the anonymous user.
-    $storage
-      ->create(array(
-        'uid' => 0,
-        'name' => '',
-        'status' => 0,
-      ))
-      ->save();
-
-    $admin_role = Role::create([
-      'id' => 'admin',
-      'permissions' => ['administer comments', 'access user profiles'],
-    ]);
-    $admin_role->save();
-
-    /* @var \Drupal\user\RoleInterface $anonymous_role */
-    $anonymous_role = Role::load(Role::ANONYMOUS_ID);
-    $anonymous_role->grantPermission('access comments');
-    $anonymous_role->save();
-
-    $this->adminUser = User::create([
-      'name' => $this->randomMachineName(),
-      'roles' => [$admin_role->id()],
-    ]);
-    $this->adminUser->save();
-
     // Create some comments.
     $comment = Comment::create([
       'subject' => 'My comment title',
