public function testGenerator()
 {
     $filesystem = new Filesystem();
     $path = sys_get_temp_dir() . '/' . uniqid();
     $filesystem->remove($path);
     $bundle = $this->getBundle($path);
     $generator = new DefaultSiteGenerator($filesystem, $this->getRegistry(), '/defaultsite', $this->getAssistant());
     $generator->generate($bundle, '', __DIR__ . '/../data', false);
     $this->assertFileExists($path . '/Twig/NodeTranslationTwigExtension.php');
 }
 public function testGenerator()
 {
     $filesystem = new Filesystem();
     $path = sys_get_temp_dir() . '/' . uniqid();
     $filesystem->remove($path);
     $bundle = $this->getBundle($path);
     $kernel = new \AppKernel('phpunit', true);
     $kernel->boot();
     $generator = new DefaultSiteGenerator($filesystem, $this->getRegistry(), '/defaultsite', $this->getAssistant(), $kernel->getContainer());
     $generator->generate($bundle, '', __DIR__ . '/../data', false);
 }