/**
  * @test
  */
 public function shouldAllowCreateGatewayConfig()
 {
     $factory = new OmnipayOffsiteGatewayFactory();
     $config = $factory->createConfig();
     $this->assertInternalType('array', $config);
     $this->assertNotEmpty($config);
 }
 /**
  * @test
  */
 public function shouldContainCaptureOffsiteActionAndMissCaptureAction()
 {
     $factory = new OmnipayOffsiteGatewayFactory();
     $config = $factory->createConfig(['type' => 'Dummy']);
     $this->assertInternalType('array', $config);
     $this->assertArrayHasKey('payum.action.capture_offsite', $config);
     $this->assertArrayNotHasKey('payum.action.capture', $config);
 }