diff --git a/core/modules/taxonomy/tests/src/Kernel/Views/ArgumentValidatorTermTest.php b/core/modules/taxonomy/tests/src/Kernel/Views/ArgumentValidatorTermTest.php index aa4269afc5..75e38fe35a 100644 --- a/core/modules/taxonomy/tests/src/Kernel/Views/ArgumentValidatorTermTest.php +++ b/core/modules/taxonomy/tests/src/Kernel/Views/ArgumentValidatorTermTest.php @@ -61,6 +61,10 @@ public function testArgumentValidatorTerm() { $view->initHandlers(); // Test the single validator for term IDs. + // @todo $view->argument['tid']->validator should be defined, but it's not + // here and that's leading to test failures in PHP 7.4. Figure out a more + // robust solution rather than creating the stdClass object in the test. + $view->argument['tid']->validator = new \stdClass(); $view->argument['tid']->validator->options['type'] = 'tid'; // Pass in a single valid term.