ProophExtensionTest::whenBootWithBundleAndConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php declare(strict_types = 1);
2
3
namespace TomCizek\SymfonyProoph\Tests;
4
5
use Prooph\InteropBundle\ProophInteropBundle;
6
use TomCizek\SymfonyInteropContainer\Tests\Configurators\ConfigFile;
7
use TomCizek\SymfonyProoph\ProophBundle;
8
use TomCizek\SymfonyProoph\Tests\Configurators\ProophTestCase;
9
10
class ProophExtensionTest extends ProophTestCase
11
{
12
	public function testLoad_ByTestKernelWithThisBundleAndFullConfig_ShouldPass()
13
	{
14
		$this->whenBootWithBundleAndConfig();
15
16
		$this->thenPass();
17
	}
18
19
	protected function whenBootWithBundleAndConfig()
20
	{
21
		$this->bootKernelWith(
22
			[
23
				ProophInteropBundle::class,
24
				ProophBundle::class,
25
			],
26
			[
27
				ConfigFile::record(self::FIXTURE_CONGIGS_DIR . 'FullTestConfig.yml', 'yml'),
28
			]
29
		);
30
	}
31
}
32