diff --git a/core/modules/aggregator/src/Tests/Views/IntegrationTest.php b/core/modules/aggregator/src/Tests/Views/IntegrationTest.php index 5084bdf..a42c2ce 100644 --- a/core/modules/aggregator/src/Tests/Views/IntegrationTest.php +++ b/core/modules/aggregator/src/Tests/Views/IntegrationTest.php @@ -23,7 +23,7 @@ class IntegrationTest extends ViewUnitTestBase { * * @var array */ - public static $modules = array('aggregator', 'aggregator_test_views', 'system', 'entity', 'field', 'options'); + public static $modules = array('aggregator', 'aggregator_test_views', 'system', 'entity', 'field', 'options', 'user'); /** * Views used by this test. diff --git a/core/modules/node/src/Plugin/views/argument_default/Node.php b/core/modules/node/src/Plugin/views/argument_default/Node.php index a92b07f..f1be8d6 100644 --- a/core/modules/node/src/Plugin/views/argument_default/Node.php +++ b/core/modules/node/src/Plugin/views/argument_default/Node.php @@ -43,9 +43,7 @@ public function isCacheable() { * {@inheritdoc} */ public function getCacheContexts() { - $contexts = ['cache.context.url']; - - return $contexts; + return ['cache.context.url']; } } diff --git a/core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php b/core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php index 39523b1..928f5f5 100644 --- a/core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php +++ b/core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php @@ -179,9 +179,7 @@ public function isCacheable() { * {@inheritdoc} */ public function getCacheContexts() { - $contexts = ['cache.context.url']; - - return $contexts; + return ['cache.context.url']; } } diff --git a/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php b/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php index 26ad57e..78afd81 100644 --- a/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php +++ b/core/modules/taxonomy/src/Tests/Views/TaxonomyFieldFilterTest.php @@ -11,6 +11,7 @@ use Drupal\language\Entity\ConfigurableLanguage; use Drupal\views\Tests\ViewTestBase; use Drupal\views\Tests\ViewTestData; +use Drupal\views\Views; /** * Tests taxonomy field filters with translations. @@ -83,6 +84,8 @@ function setUp() { } $taxonomy->save(); + Views::viewsData()->clear(); + ViewTestData::createTestViews(get_class($this), array('taxonomy_test_views')); }