/** * @test * * @expectedException \Payum\Core\Exception\LogicException * @expectedExceptionMessage Given omnipay gateway type Invalid or class is not supported. Supported: */ public function shouldThrowIfTypeNotValid() { $factory = new OmnipayDirectGatewayFactory(); $factory->create(array('type' => 'Invalid')); }
/** * {@inheritDoc} */ public function createConfig(array $config = array()) { $config = ArrayObject::ensureArrayObject($config); $config->defaults(array('payum.action.capture' => new OffsiteCaptureAction())); return parent::createConfig((array) $config); }