for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PHP Translation package.
*
* (c) PHP Translation team <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Translation\Bundle\Tests\Functional;
use Nyholm\BundleTest\AppKernel;
use Nyholm\BundleTest\BaseBundleTestCase;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Bundle\TwigBundle\TwigBundle;
use Translation\Bundle\TranslationBundle;
/**
* @author Tobias Nyholm <[email protected]>
abstract class BaseTestCase extends BaseBundleTestCase
{
* @var AppKernel
protected $kernel;
protected function getBundleClass(): string
return FrameworkBundle::class;
}
protected function setUp(): void
$kernel = $this->createKernel();
$kernel->addConfigFile(__DIR__.'/app/config/default.yaml');
$kernel->addBundle(TwigBundle::class);
$kernel->addBundle(TranslationBundle::class);
$this->kernel = $kernel;
parent::setUp();