api_v3_CountryTest - Change quickCleanup() to useTransaction()
authorTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 22:03:34 +0000 (14:03 -0800)
committerTim Otten <totten@civicrm.org>
Mon, 22 Dec 2014 22:07:45 +0000 (14:07 -0800)
tests/phpunit/api/v3/CountryTest.php

index 6836916e55453cef86d7784ebc2c5325b7c1ff53..497db8ca01ef00fcb7eaeb5c61e1dba57f8b5d02 100644 (file)
@@ -43,10 +43,10 @@ class api_v3_CountryTest extends CiviUnitTestCase {
   function setUp() {
     $this->_apiversion = 3;
     parent::setUp();
-    $this->quickCleanup(array('civicrm_country'));
+    $this->useTransaction(TRUE);
     $this->_params = array(
       'name' => 'Made Up Land',
-      'iso_code' => 'ML',
+      'iso_code' => 'ZZ',
       'region_id' => 1,
     );
   }