Files
archived-ux-translator/tests/UxTranslatorBundleTest.php

36 lines
922 B
PHP

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\UX\Translator\Tests;
use PHPUnit\Framework\TestCase;
use Symfony\Component\HttpKernel\Kernel;
use Symfony\UX\Translator\Tests\Kernel\EmptyAppKernel;
use Symfony\UX\Translator\Tests\Kernel\FrameworkAppKernel;
class UxTranslatorBundleTest extends TestCase
{
public static function provideKernels()
{
yield 'empty' => [new EmptyAppKernel('test', true)];
yield 'framework' => [new FrameworkAppKernel('test', true)];
}
/**
* @dataProvider provideKernels
*/
public function testBootKernel(Kernel $kernel)
{
$kernel->boot();
$this->assertArrayHasKey('UxTranslatorBundle', $kernel->getBundles());
}
}