<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
protected $_apiversion =3;
- /**
- * @return array
- */
- function get_info() {
- return array(
- 'name' => 'MembershipStatus Calc',
- 'description' => 'Test all MembershipStatus Calc API methods.',
- 'group' => 'CiviCRM API Tests',
- );
- }
-
function setUp() {
parent::setUp();
$this->_contactID = $this->individualCreate();
);
$result = $this->callAPISuccess('membership_status', 'delete', $params);
}
- /*
- * Test that trying to delete membership status while membership still exists creates error
- */
+
+ /**
+ * Test that trying to delete membership status while membership still exists creates error
+ */
function testDeleteWithMembershipError() {
$membershipStatusID = $this->membershipStatusCreate();
$this->_contactID = $this->individualCreate();