src/Kunstmaan/TranslatorBundle/Tests/unit/Repository/TranslationRepositoryTest.php 1 location
|
@@ 13-20 (lines=8) @@
|
| 10 |
|
/** @var TranslationRepository */ |
| 11 |
|
private $translationRepository; |
| 12 |
|
|
| 13 |
|
public function setUp() |
| 14 |
|
{ |
| 15 |
|
static::bootKernel(['test_case' => 'TranslatorBundleTest', 'root_config' => 'config.yaml']); |
| 16 |
|
$container = static::$kernel->getContainer(); |
| 17 |
|
static::loadFixtures($container); |
| 18 |
|
|
| 19 |
|
$this->translationRepository = $container->get('kunstmaan_translator.repository.translation'); |
| 20 |
|
} |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @group translation-repository |
src/Kunstmaan/TranslatorBundle/Tests/unit/Service/Migrations/MigrationsServiceTest.php 1 location
|
@@ 12-20 (lines=9) @@
|
| 9 |
|
{ |
| 10 |
|
private $migrationsService; |
| 11 |
|
|
| 12 |
|
public function setUp() |
| 13 |
|
{ |
| 14 |
|
static::bootKernel(['test_case' => 'TranslatorBundleTest', 'root_config' => 'config.yaml']); |
| 15 |
|
$container = static::$kernel->getContainer(); |
| 16 |
|
static::loadFixtures($container); |
| 17 |
|
|
| 18 |
|
/* @var MigrationsService migrationsService */ |
| 19 |
|
$this->migrationsService = $container->get('kunstmaan_translator.service.migrations.migrations'); |
| 20 |
|
} |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @group migrations |
src/Kunstmaan/TranslatorBundle/Tests/unit/Service/Importer/ImportCommandHandlerTest.php 1 location
|
@@ 13-20 (lines=8) @@
|
| 10 |
|
{ |
| 11 |
|
private $importCommandHandler; |
| 12 |
|
|
| 13 |
|
public function setUp() |
| 14 |
|
{ |
| 15 |
|
static::bootKernel(['test_case' => 'TranslatorBundleTest', 'root_config' => 'config.yaml']); |
| 16 |
|
$container = static::$kernel->getContainer(); |
| 17 |
|
static::loadFixtures($container); |
| 18 |
|
|
| 19 |
|
$this->importCommandHandler = $container->get('kunstmaan_translator.service.importer.command_handler'); |
| 20 |
|
} |
| 21 |
|
|
| 22 |
|
/** |
| 23 |
|
* @group handler |