Merge pull request #3077 from adamwight/test_fixtures
authorKurund Jalmi <kurund@civicrm.org>
Fri, 2 May 2014 18:10:04 +0000 (11:10 -0700)
committerKurund Jalmi <kurund@civicrm.org>
Fri, 2 May 2014 18:10:04 +0000 (11:10 -0700)
Provide a RoR-like test fixture helper

1  2 
tests/phpunit/api/v3/CaseTest.php

index 82cb124868413024034452c54d6e35054f425ceb,e65953d41f61e5ab51237bca85e18c2da34ee5c4..8d15651fde579f5ebfef9346a93ff0062f18fbf1
@@@ -98,10 -111,10 +98,12 @@@ class api_v3_CaseTest extends CiviUnitT
        'civicrm_relationship_type',
      );
  
 -    $this->quickCleanup($tablesToTruncate);
 +    $this->quickCleanup($this->tablesToTruncate);
 +
 +    $this->loadAllFixtures();
  
+     $this->loadAllFixtures();
      $activityTypes = $this->callAPISuccess('option_value', 'get', array(
        'option_group_id' => 2,
        'name' => 'Follow Up',