ExampleDataLoader - Also scan "Civi/Test/ExampleData/*.ex.php"
authorTim Otten <totten@civicrm.org>
Wed, 15 Sep 2021 22:51:09 +0000 (15:51 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 15 Sep 2021 23:03:20 +0000 (16:03 -0700)
Civi/Test/ExampleDataLoader.php

index 8b78d82353623ac9540b072e7c432fd03987283d..e26cb4198b0fa1097ed3e5da80c6322e7233290d 100644 (file)
@@ -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', '\\'),