From 7ef5ded0847cfdd4f958cac2da0ba9fd5607acc2 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 22 Dec 2014 12:40:59 -0800 Subject: [PATCH] api_v3_ParticipantStatusTypeTest - Change quickCleanup() to useTransaction() --- tests/phpunit/api/v3/ParticipantStatusTypeTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/api/v3/ParticipantStatusTypeTest.php b/tests/phpunit/api/v3/ParticipantStatusTypeTest.php index 4293b2e7c4..48f1542d43 100644 --- a/tests/phpunit/api/v3/ParticipantStatusTypeTest.php +++ b/tests/phpunit/api/v3/ParticipantStatusTypeTest.php @@ -36,7 +36,6 @@ class api_v3_ParticipantStatusTypeTest extends CiviUnitTestCase { protected $params; protected $id; - public $DBResetRequired = FALSE; function setUp() { @@ -52,10 +51,9 @@ class api_v3_ParticipantStatusTypeTest extends CiviUnitTestCase { 'weight' => 10, ); parent::setUp(); + $this->useTransaction(TRUE); } - function tearDown() {} - public function testCreateParticipantStatusType() { $result = $this->callAPIAndDocument('participant_status_type', 'create', $this->params, __FUNCTION__, __FILE__); $this->assertEquals(1, $result['count'], 'In line ' . __LINE__); @@ -63,6 +61,9 @@ class api_v3_ParticipantStatusTypeTest extends CiviUnitTestCase { } public function testGetParticipantStatusType() { + $result = $this->callAPIAndDocument('participant_status_type', 'create', $this->params, __FUNCTION__, __FILE__); + $this->assertEquals(1, $result['count'], 'In line ' . __LINE__); + $result = $this->callAPIAndDocument('participant_status_type', 'get', $this->params, __FUNCTION__, __FILE__); $this->assertEquals(1, $result['count'], 'In line ' . __LINE__); $this->assertNotNull($result['values'][$result['id']]['id'], 'In line ' . __LINE__); -- 2.25.1