projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NFC] CRM-19033 improve standardisation of tests
[civicrm-core.git]
/
tests
/
phpunit
/
CRM
/
Member
/
BAO
/
MembershipLogTest.php
diff --git
a/tests/phpunit/CRM/Member/BAO/MembershipLogTest.php
b/tests/phpunit/CRM/Member/BAO/MembershipLogTest.php
index 48bd55647b81711ed65367e7884555ae9132ce36..7c1fda99272441a9c0b7ee9bd9f110c269bca5b1 100644
(file)
--- a/
tests/phpunit/CRM/Member/BAO/MembershipLogTest.php
+++ b/
tests/phpunit/CRM/Member/BAO/MembershipLogTest.php
@@
-24,14
+24,11
@@
* <http://www.gnu.org/licenses/>.
*/
* <http://www.gnu.org/licenses/>.
*/
-require_once 'CiviTest/CiviUnitTestCase.php';
-require_once 'CiviTest/Contact.php';
-require_once 'CiviTest/Membership.php';
-
/**
* Test CRM/Member/BAO Membership Log add , delete functions
*
* @package CiviCRM
/**
* Test CRM/Member/BAO Membership Log add , delete functions
*
* @package CiviCRM
+ * @group headless
*/
class CRM_Member_BAO_MembershipLogTest extends CiviUnitTestCase {
*/
class CRM_Member_BAO_MembershipLogTest extends CiviUnitTestCase {
@@
-82,7
+79,7
@@
class CRM_Member_BAO_MembershipLogTest extends CiviUnitTestCase {
* Test add()
*/
public function testadd() {
* Test add()
*/
public function testadd() {
- $contactId =
Contact::createIndividual
();
+ $contactId =
$this->individualCreate
();
$params = array(
'contact_id' => $contactId,
$params = array(
'contact_id' => $contactId,
@@
-110,7
+107,7
@@
class CRM_Member_BAO_MembershipLogTest extends CiviUnitTestCase {
* Test del()
*/
public function testdel() {
* Test del()
*/
public function testdel() {
- $contactId =
Contact::createIndividual
();
+ $contactId =
$this->individualCreate
();
$params = array(
'contact_id' => $contactId,
$params = array(
'contact_id' => $contactId,
@@
-139,7
+136,7
@@
class CRM_Member_BAO_MembershipLogTest extends CiviUnitTestCase {
* Test resetmodified()
*/
public function testresetmodifiedId() {
* Test resetmodified()
*/
public function testresetmodifiedId() {
- $contactId =
Contact::createIndividual
();
+ $contactId =
$this->individualCreate
();
$params = array(
'contact_id' => $contactId,
$params = array(
'contact_id' => $contactId,