/** * @test */ public function shouldAllowCreatePaymentWithStandardActionsAdded() { $config = new Config(); $payment = PaymentFactory::create($config); $this->assertInstanceOf('Payum\\Core\\Payment', $payment); $this->assertAttributeCount(1, 'apis', $payment); $actions = $this->readAttribute($payment, 'actions'); $this->assertInternalType('array', $actions); $this->assertAttributeCount(11, 'actions', $payment); }
/** * @test * * @expectedException \Payum\Core\Exception\LogicException * @expectedExceptionMessage The eid, secret, country, language, currency fields are required. */ public function shouldThrowIfRequiredOptionsNotPassed() { $factory = new PaymentFactory(); $factory->create(); }