function setUp()
 {
     parent::setUp();
     $this->externalBundleId = uniqid();
     $this->account = $this->accountData->create($this->user, $this->reason, $this->comment, $this->tenant->getTenantHeaders());
     $paymentMethod = new Killbill_PaymentMethod();
     $paymentMethod->accountId = $this->account->accountId;
     $paymentMethod->isDefault = true;
     $paymentMethod->pluginName = '__EXTERNAL_PAYMENT__';
     $paymentMethod->create($this->user, $this->reason, $this->comment, $this->tenant->getTenantHeaders());
     $this->account = $this->account->get($this->tenant->getTenantHeaders());
     $this->assertNotEmpty($this->account->paymentMethodId);
 }
コード例 #2
0
 function setUp()
 {
     parent::setUp();
 }
 function setUp()
 {
     parent::setUp();
     $this->externalBundleId = uniqid();
     $this->account = $this->accountData->create($this->user, $this->reason, $this->comment, $this->tenant->getTenantHeaders());
 }