diff --git a/core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php b/core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php index a04927d..e925a8c 100644 --- a/core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php +++ b/core/modules/taxonomy/src/Plugin/views/argument_validator/TermName.php @@ -81,9 +81,9 @@ public function validateArgument($argument) { // $terms are already bundle tested but we need to test access control. foreach ($terms as $term) { if ($this->validateEntity($term)) { - // We only need one of the terms to be valid, so return TRUE when we - // find one. - return TRUE; + // We only need one of the terms to be valid, so return TRUE when we + // find one. + return TRUE; } } return FALSE; diff --git a/core/modules/taxonomy/src/Tests/Views/ArgumentValidatorTermNameTest.php b/core/modules/taxonomy/src/Tests/Views/ArgumentValidatorTermNameTest.php index 4619045..75d6423 100644 --- a/core/modules/taxonomy/src/Tests/Views/ArgumentValidatorTermNameTest.php +++ b/core/modules/taxonomy/src/Tests/Views/ArgumentValidatorTermNameTest.php @@ -15,6 +15,7 @@ * Tests the plugin of the taxonomy: term argument validator. * * @group taxonomy + * * @see Views\taxonomy\Plugin\views\argument_validator\Term */ class ArgumentValidatorTermNameTest extends TaxonomyTestBase { @@ -52,7 +53,11 @@ class ArgumentValidatorTermNameTest extends TaxonomyTestBase { * * @var array */ - public static $modules = ['taxonomy', 'taxonomy_test_views', 'views_test_config']; + public static $modules = [ + 'taxonomy', + 'taxonomy_test_views', + 'views_test_config', + ]; /** * Views used by this test. @@ -61,6 +66,9 @@ class ArgumentValidatorTermNameTest extends TaxonomyTestBase { */ public static $testViews = ['taxonomy_term_name_argument_test']; + /** + * {@inheritdoc} + */ protected function setUp() { parent::setUp();