projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4789 from totten/master-test-tx
[civicrm-core.git]
/
tests
/
phpunit
/
api
/
v3
/
MembershipStatusTest.php
diff --git
a/tests/phpunit/api/v3/MembershipStatusTest.php
b/tests/phpunit/api/v3/MembershipStatusTest.php
index 9343bb4b9e2c83a3682b3c15cff58a45cb3f69b1..2d8ff8538772ae697f636847cdbe61895bdae9d8 100644
(file)
--- a/
tests/phpunit/api/v3/MembershipStatusTest.php
+++ b/
tests/phpunit/api/v3/MembershipStatusTest.php
@@
-1,7
+1,7
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
5
|
+ | CiviCRM version 4.
6
|
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
@@
-39,17
+39,6
@@
class api_v3_MembershipStatusTest extends CiviUnitTestCase {
protected $_apiversion =3;
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();
function setUp() {
parent::setUp();
$this->_contactID = $this->individualCreate();
@@
-158,9
+147,10
@@
class api_v3_MembershipStatusTest extends CiviUnitTestCase {
);
$result = $this->callAPISuccess('membership_status', 'delete', $params);
}
);
$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();
function testDeleteWithMembershipError() {
$membershipStatusID = $this->membershipStatusCreate();
$this->_contactID = $this->individualCreate();