Exemplo n.º 1
0
 /**
  * Inserts a payment method record into the database and creates a relation
  * to it from the fixture.
  *
  * @param array $paymentMethodData data of the payment method to add, may be empty
  *
  * @return int the UID of the created record, will be > 0
  */
 private function addPaymentMethodRelation(array $paymentMethodData = array())
 {
     $uid = $this->testingFramework->createRecord('tx_seminars_payment_methods', $paymentMethodData);
     $this->testingFramework->createRelation('tx_seminars_seminars_payment_methods_mm', $this->fixture->getUid(), $uid);
     $this->fixture->setNumberOfPaymentMethods($this->fixture->getNumberOfPaymentMethods() + 1);
     return $uid;
 }