/** * @test */ public function shouldAllowCreatePaymentWithStandardActionsAdded() { $apiMock = $this->createAuthorizeNetAIMMock(); $payment = PaymentFactory::create($apiMock); $this->assertInstanceOf('Payum\\Core\\Payment', $payment); $this->assertAttributeCount(1, 'apis', $payment); $actions = $this->readAttribute($payment, 'actions'); $this->assertInternalType('array', $actions); $this->assertNotEmpty($actions); }
/** * @test * * @expectedException \Payum\Core\Exception\LogicException * @expectedExceptionMessage The login_id, transaction_key fields are required. */ public function shouldThrowIfRequiredOptionsNotPassed() { $factory = new PaymentFactory(); $factory->create(); }