From: Tim Otten Date: Wed, 27 Aug 2014 00:39:50 +0000 (-0700) Subject: SyntaxConformanceTest - Use BAO's instead of DAO's to allow better-tuned test data X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6252a38c1b98ac966aa109debb54e5e738339f84;p=civicrm-core.git SyntaxConformanceTest - Use BAO's instead of DAO's to allow better-tuned test data --- 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;