From: Tim Otten Date: Wed, 15 Sep 2021 22:51:09 +0000 (-0700) Subject: ExampleDataLoader - Also scan "Civi/Test/ExampleData/*.ex.php" X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1b4483d04a25956f3817217f66ee98f552816634;p=civicrm-core.git ExampleDataLoader - Also scan "Civi/Test/ExampleData/*.ex.php" --- diff --git a/Civi/Test/ExampleDataLoader.php b/Civi/Test/ExampleDataLoader.php index 8b78d82353..e26cb4198b 100644 --- a/Civi/Test/ExampleDataLoader.php +++ b/Civi/Test/ExampleDataLoader.php @@ -79,6 +79,7 @@ class ExampleDataLoader { protected function findMetas(): array { $classes = array_merge( // This scope of search is decidedly narrow - it should probably be expanded. + $this->scanExampleClasses(\Civi::paths()->getPath('[civicrm.root]/'), 'Civi/Test/ExampleData', '\\'), $this->scanExampleClasses(\Civi::paths()->getPath('[civicrm.root]/'), 'CRM/*/WorkflowMessage', '_'), $this->scanExampleClasses(\Civi::paths()->getPath('[civicrm.root]/'), 'Civi/*/WorkflowMessage', '\\'), $this->scanExampleClasses(\Civi::paths()->getPath('[civicrm.root]/'), 'Civi/WorkflowMessage', '\\'),