From dc544877464eaf3e116b3a82324083ccd8e63321 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 22 Jun 2022 22:25:54 -0700 Subject: [PATCH] ExampleDataInterface - Switch to ClassScanner (part 2, use new names) --- Civi/Api4/Action/ExampleData/Get.php | 2 +- tests/phpunit/CRM/Case/WorkflowMessage/CaseActivityTest.php | 2 +- tests/phpunit/api/v4/Entity/ExampleDataTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Civi/Api4/Action/ExampleData/Get.php b/Civi/Api4/Action/ExampleData/Get.php index 9f91c82221..69a7eebec9 100644 --- a/Civi/Api4/Action/ExampleData/Get.php +++ b/Civi/Api4/Action/ExampleData/Get.php @@ -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. * diff --git a/tests/phpunit/CRM/Case/WorkflowMessage/CaseActivityTest.php b/tests/phpunit/CRM/Case/WorkflowMessage/CaseActivityTest.php index 8d29866cf6..ce34bc710a 100644 --- a/tests/phpunit/CRM/Case/WorkflowMessage/CaseActivityTest.php +++ b/tests/phpunit/CRM/Case/WorkflowMessage/CaseActivityTest.php @@ -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)"); diff --git a/tests/phpunit/api/v4/Entity/ExampleDataTest.php b/tests/phpunit/api/v4/Entity/ExampleDataTest.php index 82839674cb..e7d3d73a38 100644 --- a/tests/phpunit/api/v4/Entity/ExampleDataTest.php +++ b/tests/phpunit/api/v4/Entity/ExampleDataTest.php @@ -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)"); -- 2.25.1