MariaDbProjectionManagerConfiguratorTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetProjectionManagerByType_FromTestContainer_ShouldReturnExpectedInstance() 0 8 1
1
<?php declare(strict_types = 1);
2
3
namespace TomCizek\SymfonyProoph\Tests\ProjectionManager;
4
5
use Prooph\EventStore\Pdo\Projection\MariaDbProjectionManager;
6
use Prooph\EventStore\Projection\ProjectionManager;
7
use TomCizek\SymfonyProoph\Tests\Configurators\ProophTestCase;
8
9
class MariaDbProjectionManagerConfiguratorTest extends ProophTestCase
10
{
11
	private const FIXTURE_CONFIG_FILE = 'ProjectionManagerTests/MariaDbProjectionManagerTest.yml';
12
13
	public function testGetProjectionManagerByType_FromTestContainer_ShouldReturnExpectedInstance()
14
	{
15
		$this->givenContainerWithLoadedBundlesWithGivenConfig(self::FIXTURE_CONFIG_FILE);
16
17
		$manager = $this->whenGetFromContainer(ProjectionManager::class);
18
19
		$this->thenIsInstanceOfGivenClass(MariaDbProjectionManager::class, $manager);
20
	}
21
}
22