From be44cfcbf0fee44566fe59fe469c9bd627b13b8f Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sun, 15 Sep 2019 14:54:37 -0400 Subject: [PATCH] tests/phpunit - Change hardcoded references to api/v3/examples/**.php --- tests/phpunit/api/v3/ActivityTest.php | 2 +- tests/phpunit/api/v3/ContributionTest.php | 2 +- tests/phpunit/api/v3/CustomFieldTest.php | 2 +- tests/phpunit/api/v3/NoteTest.php | 2 +- tests/phpunit/api/v3/PaymentProcessorTest.php | 2 +- tests/phpunit/api/v3/PaymentProcessorTypeTest.php | 2 +- tests/phpunit/api/v3/RelationshipTypeTest.php | 2 +- tests/phpunit/api/v3/TaxContributionPageTest.php | 2 +- tests/phpunit/api/v3/UFJoinTest.php | 2 +- tests/phpunit/api/v3/UFMatchTest.php | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/phpunit/api/v3/ActivityTest.php b/tests/phpunit/api/v3/ActivityTest.php index fd0c260eb4..c3bd0573ab 100644 --- a/tests/phpunit/api/v3/ActivityTest.php +++ b/tests/phpunit/api/v3/ActivityTest.php @@ -458,7 +458,7 @@ class api_v3_ActivityTest extends CiviUnitTestCase { * Test civicrm_activity_create() using example code. */ public function testActivityCreateExample() { - require_once 'api/v3/examples/Activity/Create.php'; + require_once 'api/v3/examples/Activity/Create.ex.php'; $result = activity_create_example(); $expectedResult = activity_create_expectedresult(); // Compare everything *except* timestamps. diff --git a/tests/phpunit/api/v3/ContributionTest.php b/tests/phpunit/api/v3/ContributionTest.php index 20a5900daf..be3c2059ec 100644 --- a/tests/phpunit/api/v3/ContributionTest.php +++ b/tests/phpunit/api/v3/ContributionTest.php @@ -962,7 +962,7 @@ class api_v3_ContributionTest extends CiviUnitTestCase { public function testContributionCreateExample() { //make sure at least on page exists since there is a truncate in tear down $this->callAPISuccess('contribution_page', 'create', $this->_pageParams); - require_once 'api/v3/examples/Contribution/Create.php'; + require_once 'api/v3/examples/Contribution/Create.ex.php'; $result = contribution_create_example(); $id = $result['id']; $expectedResult = contribution_create_expectedresult(); diff --git a/tests/phpunit/api/v3/CustomFieldTest.php b/tests/phpunit/api/v3/CustomFieldTest.php index 1e7ad9d728..86297dca0a 100644 --- a/tests/phpunit/api/v3/CustomFieldTest.php +++ b/tests/phpunit/api/v3/CustomFieldTest.php @@ -206,7 +206,7 @@ class api_v3_CustomFieldTest extends CiviUnitTestCase { { $customGroup = $this->customGroupCreate('Individual','date_test_group',3); - require_once 'api/v3/examples/CustomField/Create.php'; + require_once 'api/v3/examples/CustomField/Create.ex.php'; $result = custom_field_create_example(); $expectedResult = custom_field_create_expectedresult(); $this->assertEquals($result,$expectedResult); diff --git a/tests/phpunit/api/v3/NoteTest.php b/tests/phpunit/api/v3/NoteTest.php index 4887d5f80d..50bc41e38d 100644 --- a/tests/phpunit/api/v3/NoteTest.php +++ b/tests/phpunit/api/v3/NoteTest.php @@ -320,7 +320,7 @@ class api_v3_NoteTest extends CiviUnitTestCase { * Test civicrm note create() using example code. */ function testNoteCreateExample() { - require_once 'api/v3/examples/Note/Create.php'; + require_once 'api/v3/examples/Note/Create.ex.php'; $result = Note_get_example(); $expectedResult = Note_get_expectedresult(); $this->assertEquals($result, $expectedResult); diff --git a/tests/phpunit/api/v3/PaymentProcessorTest.php b/tests/phpunit/api/v3/PaymentProcessorTest.php index 27f8e8acad..60ccd4e5ce 100644 --- a/tests/phpunit/api/v3/PaymentProcessorTest.php +++ b/tests/phpunit/api/v3/PaymentProcessorTest.php @@ -123,7 +123,7 @@ class api_v3_PaymentProcessorTest extends CiviUnitTestCase { * Test using example code. */ public function testPaymentProcessorCreateExample() { - require_once 'api/v3/examples/PaymentProcessor/Create.php'; + require_once 'api/v3/examples/PaymentProcessor/Create.ex.php'; $result = payment_processor_create_example(); $expectedResult = payment_processor_create_expectedresult(); $this->assertAPISuccess($result); diff --git a/tests/phpunit/api/v3/PaymentProcessorTypeTest.php b/tests/phpunit/api/v3/PaymentProcessorTypeTest.php index 1087ba7397..7913770d5d 100644 --- a/tests/phpunit/api/v3/PaymentProcessorTypeTest.php +++ b/tests/phpunit/api/v3/PaymentProcessorTypeTest.php @@ -90,7 +90,7 @@ class api_v3_PaymentProcessorTypeTest extends CiviUnitTestCase { * Test using example code. */ public function testPaymentProcessorTypeCreateExample() { - require_once 'api/v3/examples/PaymentProcessorType/Create.php'; + require_once 'api/v3/examples/PaymentProcessorType/Create.ex.php'; $result = payment_processor_type_create_example(); $expectedResult = payment_processor_type_create_expectedresult(); $this->assertAPISuccess($result); diff --git a/tests/phpunit/api/v3/RelationshipTypeTest.php b/tests/phpunit/api/v3/RelationshipTypeTest.php index c0b18364ab..f71f28fed2 100644 --- a/tests/phpunit/api/v3/RelationshipTypeTest.php +++ b/tests/phpunit/api/v3/RelationshipTypeTest.php @@ -124,7 +124,7 @@ class api_v3_RelationshipTypeTest extends CiviUnitTestCase { */ public function testRelationshipTypeCreateExample($version) { $this->_apiversion = $version; - require_once 'api/v3/examples/RelationshipType/Create.php'; + require_once 'api/v3/examples/RelationshipType/Create.ex.php'; $result = relationship_type_create_example(); $expectedResult = relationship_type_create_expectedresult(); $this->assertAPISuccess($result); diff --git a/tests/phpunit/api/v3/TaxContributionPageTest.php b/tests/phpunit/api/v3/TaxContributionPageTest.php index 8eb25dc38f..b1d9bf3a32 100644 --- a/tests/phpunit/api/v3/TaxContributionPageTest.php +++ b/tests/phpunit/api/v3/TaxContributionPageTest.php @@ -162,7 +162,7 @@ class api_v3_TaxContributionPageTest extends CiviUnitTestCase { ]; $result = $this->callAPISuccess('payment_processor', 'create', $paymentProceParams); $this->_ids['paymentProcessID'] = $result['id']; - require_once 'api/v3/examples/PaymentProcessor/Create.php'; + require_once 'api/v3/examples/PaymentProcessor/Create.ex.php'; $this->assertAPISuccess($result); } diff --git a/tests/phpunit/api/v3/UFJoinTest.php b/tests/phpunit/api/v3/UFJoinTest.php index 3140685fcb..46c11e49b9 100644 --- a/tests/phpunit/api/v3/UFJoinTest.php +++ b/tests/phpunit/api/v3/UFJoinTest.php @@ -255,7 +255,7 @@ class api_v3_UFJoinTest extends CiviUnitTestCase { */ public function testUFJoinCreateExample($version) { $this->_apiversion = $version; - require_once 'api/v3/examples/UFJoin/Create.php'; + require_once 'api/v3/examples/UFJoin/Create.ex.php'; $result = UF_join_create_example(); $expectedResult = UF_join_create_expectedresult(); $this->assertEquals($result, $expectedResult); diff --git a/tests/phpunit/api/v3/UFMatchTest.php b/tests/phpunit/api/v3/UFMatchTest.php index 0874df677b..e12a470b1b 100644 --- a/tests/phpunit/api/v3/UFMatchTest.php +++ b/tests/phpunit/api/v3/UFMatchTest.php @@ -132,7 +132,7 @@ class api_v3_UFMatchTest extends CiviUnitTestCase { */ public function testUFMatchGetExample($version) { $this->_apiversion = $version; - require_once 'api/v3/examples/UFMatch/Get.php'; + require_once 'api/v3/examples/UFMatch/Get.ex.php'; $result = UF_match_get_example(); $expectedResult = UF_match_get_expectedresult(); $this->assertEquals($result, $expectedResult); -- 2.25.1