/** * @test */ public function shouldAllowCreatePaymentConfig() { $factory = new DirectPaymentFactory(); $config = $factory->createConfig(); $this->assertInternalType('array', $config); $this->assertNotEmpty($config); }
/** * {@inheritDoc} */ public function createConfig(array $config = array()) { $config = ArrayObject::ensureArrayObject($config); $config->defaults(array( 'payum.action.capture' => new OffsiteCaptureAction(), )); return parent::createConfig((array) $config); }