/** * @test */ public function shouldAllowCreatePaymentWithStandardActionsAdded() { $payment = PaymentFactory::create(); $this->assertInstanceOf('Payum\\Core\\Payment', $payment); $actions = $this->readAttribute($payment, 'actions'); $this->assertInternalType('array', $actions); $this->assertNotEmpty($actions); }
/** * @test */ public function shouldAllowCreatePayment() { $factory = new PaymentFactory(); $payment = $factory->create(); $this->assertInstanceOf('Payum\Core\Payment', $payment); $this->assertAttributeEmpty('apis', $payment); $this->assertAttributeNotEmpty('actions', $payment); $extensions = $this->readAttribute($payment, 'extensions'); $this->assertAttributeNotEmpty('extensions', $extensions); }