Completed
Push — master ( cb16cf...f129a6 )
by Tomáš
05:41
created

getExpectedServiceName()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
nc 1
1
<?php declare(strict_types = 1);
2
3
namespace TomCizek\SymfonyProoph\Tests\AsynchronousMessages;
4
5
use TomCizek\SymfonyProoph\AsynchronousMessages\AsynchronousMessageProducer;
6
use TomCizek\SymfonyProoph\Tests\Configurators\ProophTestCase;
7
8
abstract class AbstractAsynchronousProducerConfiguratorTestCase extends ProophTestCase
9
{
10
	abstract protected function getConfigFile();
11
12
	abstract protected function getExpectedServiceName();
13
14
	public function testGet_FromTestContainer_ShouldReturnAsynchronousMessageProducerInstance()
15
	{
16
		$this->givenContainerWithLoadedBundlesWithGivenConfig($this->getConfigFile());
17
18
		$producer = $this->whenGetFromContainer($this->getExpectedServiceName());
19
20
		$this->thenIsInstanceOfGivenClass(AsynchronousMessageProducer::class, $producer);
21
	}
22
}
23