X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCRM%2FEvent%2FBAO%2FAdditionalPaymentTest.php;h=864b914ce5f36ffcc6023070e5bdb5595d881ef9;hb=648631cd94799e87fe2347487d465b1a7256aa57;hp=e23e45b71ce5c18d19eecf3266f852e2e1bbbba0;hpb=fa843793cd216e24388432ef4b6249c599462088;p=civicrm-core.git diff --git a/tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php b/tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php index e23e45b71c..864b914ce5 100644 --- a/tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php +++ b/tests/phpunit/CRM/Event/BAO/AdditionalPaymentTest.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2016 | + | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -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() {