コード例 #1
0
 /**
  * @test
  */
 public function shouldPrependTwigsExtensionConfig()
 {
     $factory = new StripeJsPaymentFactory();
     $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);
 }