| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class BundleTest extends KernelTestCase |
||
| 12 | { |
||
| 13 | protected static function getKernelClass(): string |
||
| 14 | { |
||
| 15 | return AppKernel::class; |
||
| 16 | } |
||
| 17 | |||
| 18 | protected static function createKernel(array $options = []): KernelInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var AppKernel $kernel |
||
| 22 | */ |
||
| 23 | $kernel = parent::createKernel($options); |
||
| 24 | $kernel->addBundle(MenuBundle::class); |
||
| 25 | |||
| 26 | return $kernel; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function testInitBundle(): void |
||
| 30 | { |
||
| 31 | self::bootKernel(); |
||
| 32 | $bundle = self::$kernel->getBundle('MenuBundle'); |
||
| 33 | $this->assertInstanceOf(MenuBundle::class, $bundle); |
||
| 34 | $this->assertInstanceOf(MenuBundleExtension::class, $bundle->getContainerExtension()); |
||
| 35 | } |
||
| 37 | } |