/**
  * @test
  */
 public function shouldAllowCreateGatewayConfig()
 {
     $factory = new OmnipayDirectGatewayFactory();
     $config = $factory->createConfig();
     $this->assertInternalType('array', $config);
     $this->assertNotEmpty($config);
 }
 /**
  * @test
  */
 public function shouldContainCaptureActionAndMissCaptureOffsiteAction()
 {
     $factory = new OmnipayDirectGatewayFactory();
     $config = $factory->createConfig(['type' => 'Dummy']);
     $this->assertInternalType('array', $config);
     $this->assertArrayHasKey('payum.action.capture', $config);
     $this->assertArrayNotHasKey('payum.action.capture_offsite', $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);
 }