Merge pull request #8667 from JKingsnorth/CRM-18186
[civicrm-core.git] / tests / phpunit / CRM / Event / BAO / AdditionalPaymentTest.php
index e23e45b71ce5c18d19eecf3266f852e2e1bbbba0..9ac09f148f9247b872099d90293dc97b88248a37 100644 (file)
@@ -33,8 +33,9 @@ class CRM_Event_BAO_AdditionalPaymentTest extends CiviUnitTestCase {
 
   public function setUp() {
     parent::setUp();
-    $this->_contactId = Contact::createIndividual();
-    $this->_eventId = Event::create($this->_contactId);
+    $this->_contactId = $this->individualCreate();
+    $event = $this->eventCreate();
+    $this->_eventId = $event['id'];
   }
 
   public function tearDown() {