From 710ec4710d096b584143338ef886fbc414b657ea Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 26 Mar 2014 10:23:37 -0400 Subject: [PATCH] Test fix --- tests/phpunit/api/v3/TagTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/api/v3/TagTest.php b/tests/phpunit/api/v3/TagTest.php index ca5eff2ff3..e02c3060e8 100644 --- a/tests/phpunit/api/v3/TagTest.php +++ b/tests/phpunit/api/v3/TagTest.php @@ -136,22 +136,22 @@ class api_v3_TagTest extends CiviUnitTestCase { } /** - * Test civicrm_tag_create contribution tag- success expected. Test checks that used_for is set + * Test civicrm_tag_create activity tag- success expected. Test checks that used_for is set * and not over-written by default on update */ - function testCreateContributionTag() { + function testCreateEntitySpecificTag() { $params = array( 'name' => 'New Tag4', - 'description' => 'This is description for New Cont tag', - 'used_for' => 'civicrm_contribution', + 'description' => 'This is description for New Activity tag', + 'used_for' => 'civicrm_activity', ); $result = $this->callAPISuccess('tag', 'create', $params); - $check = $this->callAPISuccess('tag', 'get', array()); + $this->callAPISuccess('tag', 'get', array()); $this->getAndCheck($params, $result['id'], 'tag', 0, __FUNCTION__ . ' tag first created'); unset($params['used_for']); $params['id'] = $result['id']; $result = $this->callAPISuccess('tag', 'create', $params); - $params['used_for'] = 'civicrm_contribution'; + $params['used_for'] = 'civicrm_activity'; $this->getAndCheck($params, $result['id'], 'tag', 1, __FUNCTION__ . ' tag updated in line ' . __LINE__); } ///////////////// civicrm_tag_delete methods -- 2.25.1