/**
  * {@inheritDoc}
  */
 protected function createFactoryConfig()
 {
     $config = parent::createFactoryConfig();
     $config['payum.template.obtain_token'] = new Parameter('payum.stripe_js.template.obtain_checkout_token');
     return $config;
 }
 /**
  * @test
  */
 public function shouldPrependTwigsExtensionConfig()
 {
     $factory = new StripeCheckoutGatewayFactory();
     $container = new ContainerBuilder();
     $factory->prepend($container);
     $twigConfig = $container->getExtensionConfig('twig');
     //guard
     $this->assertTrue(isset($twigConfig[0]['paths']));
     $paths = $twigConfig[0]['paths'];
     $key = array_search('PayumCore', $paths);
     $this->assertFileExists($key);
     $key = array_search('PayumStripe', $paths);
     $this->assertFileExists($key);
 }