Skip to content
Snippets Groups Projects
Unverified Commit 1e51ac35 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3042875 by claudiu.cristea, Lendude: Convert TaxonomyIndexTidFilterTest into a Kernel test

(cherry picked from commit 2f162aca)
parent 4c8bdc11
No related merge requests found
<?php <?php
namespace Drupal\Tests\taxonomy\Functional\Views; namespace Drupal\Tests\taxonomy\Kernel\Views;
use Drupal\taxonomy\Entity\Term; use Drupal\taxonomy\Entity\Term;
use Drupal\taxonomy\Entity\Vocabulary; use Drupal\taxonomy\Entity\Vocabulary;
...@@ -16,11 +16,6 @@ ...@@ -16,11 +16,6 @@
*/ */
class TaxonomyIndexTidFilterTest extends TaxonomyTestBase { class TaxonomyIndexTidFilterTest extends TaxonomyTestBase {
/**
* {@inheritdoc}
*/
public static $modules = ['taxonomy', 'taxonomy_test_views', 'views', 'node'];
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
...@@ -75,7 +70,7 @@ public function testConfigDependency() { ...@@ -75,7 +70,7 @@ public function testConfigDependency() {
]; ];
sort($content_dependencies); sort($content_dependencies);
$this->assertEqual([ $this->assertEquals([
'config' => [ 'config' => [
'taxonomy.vocabulary.tags', 'taxonomy.vocabulary.tags',
], ],
...@@ -89,7 +84,7 @@ public function testConfigDependency() { ...@@ -89,7 +84,7 @@ public function testConfigDependency() {
$this->terms[3]->delete(); $this->terms[3]->delete();
$this->assertEqual([ $this->assertEquals([
'config' => [ 'config' => [
'taxonomy.vocabulary.tags', 'taxonomy.vocabulary.tags',
], ],
...@@ -120,7 +115,7 @@ public function testPostUpdateFunction() { ...@@ -120,7 +115,7 @@ public function testPostUpdateFunction() {
]; ];
sort($content_dependencies); sort($content_dependencies);
$this->assertEqual([ $this->assertEquals([
'config' => [ 'config' => [
'taxonomy.vocabulary.tags', 'taxonomy.vocabulary.tags',
], ],
...@@ -138,7 +133,7 @@ public function testPostUpdateFunction() { ...@@ -138,7 +133,7 @@ public function testPostUpdateFunction() {
views_post_update_taxonomy_index_tid(); views_post_update_taxonomy_index_tid();
$view = View::load('test_filter_taxonomy_index_tid__non_existing_dependency'); $view = View::load('test_filter_taxonomy_index_tid__non_existing_dependency');
$this->assertEqual([ $this->assertEquals([
'config' => [ 'config' => [
'taxonomy.vocabulary.tags', 'taxonomy.vocabulary.tags',
], ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment