[NFC] CRM-19033 improve standardisation of tests
[civicrm-core.git] / tests / phpunit / CRM / Member / BAO / MembershipLogTest.php
index 48bd55647b81711ed65367e7884555ae9132ce36..7c1fda99272441a9c0b7ee9bd9f110c269bca5b1 100644 (file)
  *   <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
+ * @group headless
  */
 class CRM_Member_BAO_MembershipLogTest extends CiviUnitTestCase {
 
@@ -82,7 +79,7 @@ class CRM_Member_BAO_MembershipLogTest extends CiviUnitTestCase {
    *  Test add()
    */
   public function testadd() {
-    $contactId = Contact::createIndividual();
+    $contactId = $this->individualCreate();
 
     $params = array(
       'contact_id' => $contactId,
@@ -110,7 +107,7 @@ class CRM_Member_BAO_MembershipLogTest extends CiviUnitTestCase {
    *  Test del()
    */
   public function testdel() {
-    $contactId = Contact::createIndividual();
+    $contactId = $this->individualCreate();
 
     $params = array(
       'contact_id' => $contactId,
@@ -139,7 +136,7 @@ class CRM_Member_BAO_MembershipLogTest extends CiviUnitTestCase {
    *  Test resetmodified()
    */
   public function testresetmodifiedId() {
-    $contactId = Contact::createIndividual();
+    $contactId = $this->individualCreate();
 
     $params = array(
       'contact_id' => $contactId,