ExampleDataInterface - Switch to ClassScanner (part 2, use new names)
authorTim Otten <totten@civicrm.org>
Thu, 23 Jun 2022 05:25:54 +0000 (22:25 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 28 Jun 2022 00:18:21 +0000 (17:18 -0700)
Civi/Api4/Action/ExampleData/Get.php
tests/phpunit/CRM/Case/WorkflowMessage/CaseActivityTest.php
tests/phpunit/api/v4/Entity/ExampleDataTest.php

index 9f91c82221f5f13990c3815e87878162416da78d..69a7eebec9f3d622187443c077a06e52c3d3aed6 100644 (file)
@@ -19,7 +19,7 @@ use Civi\Test\ExampleDataLoader;
 /**
  * Get a list of example data-sets.
  *
- * Examples are generated by scanning `*.ex.php` files. The scanner caches
+ * Examples are generated by scanning `ExampleDataInterface` files. The scanner caches
  * metadata fields (`name`, `title`, `tags`, `file`) to avoid extraneous scanning, but
  * substantive fields (`data`) are computed as-needed.
  *
index 8d29866cf64069e45a27a9f8d8ecf548400566a1..ce34bc710a5abde9116f62832f0d4f580728e4ee 100644 (file)
@@ -52,7 +52,7 @@ class CRM_Case_WorkflowMessage_CaseActivityTest extends CiviUnitTestCase {
    * @throws \Civi\API\Exception\UnauthorizedException
    */
   public function testExampleGet() {
-    $file = \Civi::paths()->getPath('[civicrm.root]/tests/phpunit/CRM/Case/WorkflowMessage/CaseActivity/CaseModelExample.ex.php');
+    $file = \Civi::paths()->getPath('[civicrm.root]/tests/phpunit/CRM/Case/WorkflowMessage/CaseActivity/CaseModelExample.php');
     $name = 'workflow/case_activity/CaseModelExample';
 
     $this->assertTrue(file_exists($file), "Expect find canary file ($file)");
index 82839674cbef708eca0ab473e73b1b14d35323cc..e7d3d73a386a16bac44d067cc239288dcdbeb7cc 100644 (file)
@@ -33,7 +33,7 @@ class ExampleDataTest extends Api4TestBase {
    * @throws \Civi\API\Exception\UnauthorizedException
    */
   public function testGet() {
-    $file = \Civi::paths()->getPath('[civicrm.root]/Civi/WorkflowMessage/GenericWorkflowMessage/Alex.ex.php');
+    $file = \Civi::paths()->getPath('[civicrm.root]/Civi/WorkflowMessage/GenericWorkflowMessage/Alex.php');
     $name = 'workflow/generic/Alex';
 
     $this->assertTrue(file_exists($file), "Expect find canary file ($file)");