diff --git a/core/modules/system/lib/Drupal/system/Tests/Condition/RequestPathConditionTest.php b/core/modules/system/lib/Drupal/system/Tests/Condition/RequestPathConditionTest.php index 674889b..8cfbd45 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Condition/RequestPathConditionTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Condition/RequestPathConditionTest.php @@ -67,6 +67,9 @@ public function testConditions() { $new_request->attributes->set('system_path', 'my/pass/page2'); $this->assertTrue($condition->execute(), 'The system_path my/pass/page2 passes.'); + $condition->setConfig('pages', 'my/pass/*'); + $this->assertTrue($condition->execute(), 'The system_path my/pass/page2 passes for wildcard paths.'); + // Set the pages to a new path. $condition->setConfig('pages', 'my/fail/page'); $this->assertFalse($condition->execute(), 'The system_path my/fail/page fails.');