From 6252a38c1b98ac966aa109debb54e5e738339f84 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 26 Aug 2014 17:39:50 -0700 Subject: [PATCH] SyntaxConformanceTest - Use BAO's instead of DAO's to allow better-tuned test data --- tests/phpunit/api/v3/SyntaxConformanceTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/api/v3/SyntaxConformanceTest.php b/tests/phpunit/api/v3/SyntaxConformanceTest.php index bd65c38651..ad8b854827 100644 --- a/tests/phpunit/api/v3/SyntaxConformanceTest.php +++ b/tests/phpunit/api/v3/SyntaxConformanceTest.php @@ -684,7 +684,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { 'check that no limit returns 25', ); - $baoString = _civicrm_api3_get_DAO($entityName); + $baoString = _civicrm_api3_get_BAO($entityName); if (empty($baoString)) { $this->markTestIncomplete("Entity [$entityName] cannot be mocked - no known DAO"); return; @@ -749,7 +749,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { return; } - $baoString = _civicrm_api3_get_DAO($entityName); + $baoString = _civicrm_api3_get_BAO($entityName); if (empty($baoString)) { $this->markTestIncomplete("Entity [$entityName] cannot be mocked - no known DAO"); return; @@ -887,7 +887,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { return; } - $baoString = _civicrm_api3_get_DAO($entityName); + $baoString = _civicrm_api3_get_BAO($entityName); $this->assertNotEmpty($baoString, $entityName); $this->assertNotEmpty($entityName, $entityName); $fieldsGet = $fields = $this->callAPISuccess($entityName, 'getfields', array('action' => 'get')); @@ -1170,7 +1170,7 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase { * @return array */ private function getMockableBAOObjects($entityName, $count = 2) { - $baoString = _civicrm_api3_get_DAO($entityName); + $baoString = _civicrm_api3_get_BAO($entityName); if (empty($baoString)) { $this->markTestIncomplete("Entity [$entityName] cannot be mocked - no known DAO"); return; -- 2.25.1