diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidFilterTest.php b/core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyIndexTidFilterTest.php
similarity index 93%
rename from core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidFilterTest.php
rename to core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyIndexTidFilterTest.php
index 6fd1eba865874c3b2544b8717a70824dfbfd0a05..bbc08470df38e27e147f8c403591dc9c13243d29 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyIndexTidFilterTest.php
+++ b/core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyIndexTidFilterTest.php
@@ -1,6 +1,6 @@
 <?php
 
-namespace Drupal\Tests\taxonomy\Functional\Views;
+namespace Drupal\Tests\taxonomy\Kernel\Views;
 
 use Drupal\taxonomy\Entity\Term;
 use Drupal\taxonomy\Entity\Vocabulary;
@@ -16,11 +16,6 @@
  */
 class TaxonomyIndexTidFilterTest extends TaxonomyTestBase {
 
-  /**
-   * {@inheritdoc}
-   */
-  public static $modules = ['taxonomy', 'taxonomy_test_views', 'views', 'node'];
-
   /**
    * {@inheritdoc}
    */
@@ -75,7 +70,7 @@ public function testConfigDependency() {
     ];
     sort($content_dependencies);
 
-    $this->assertEqual([
+    $this->assertEquals([
       'config' => [
         'taxonomy.vocabulary.tags',
       ],
@@ -89,7 +84,7 @@ public function testConfigDependency() {
 
     $this->terms[3]->delete();
 
-    $this->assertEqual([
+    $this->assertEquals([
       'config' => [
         'taxonomy.vocabulary.tags',
       ],
@@ -120,7 +115,7 @@ public function testPostUpdateFunction() {
     ];
     sort($content_dependencies);
 
-    $this->assertEqual([
+    $this->assertEquals([
       'config' => [
         'taxonomy.vocabulary.tags',
       ],
@@ -138,7 +133,7 @@ public function testPostUpdateFunction() {
     views_post_update_taxonomy_index_tid();
 
     $view = View::load('test_filter_taxonomy_index_tid__non_existing_dependency');
-    $this->assertEqual([
+    $this->assertEquals([
       'config' => [
         'taxonomy.vocabulary.tags',
       ],