@@ 30-38 (lines=9) @@ | ||
27 | /** |
|
28 | * @group importer |
|
29 | */ |
|
30 | public function testImportNewDomainFileForced() |
|
31 | { |
|
32 | foreach ($this->getNewDomainTestFinder() as $file) { |
|
33 | $this->importer->import($file, true); |
|
34 | } |
|
35 | ||
36 | $translation = $this->translationRepository->findOneBy(array('keyword' => 'newdomain.name', 'locale' => 'de')); |
|
37 | $this->assertEquals('a new domain', $translation->getText()); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * @group importer |
|
@@ 43-51 (lines=9) @@ | ||
40 | /** |
|
41 | * @group importer |
|
42 | */ |
|
43 | public function testImportExistingDomainFileNonForced() |
|
44 | { |
|
45 | foreach ($this->getExistingDomainTestFinder() as $file) { |
|
46 | $this->importer->import($file, false); |
|
47 | } |
|
48 | ||
49 | $translation = $this->translationRepository->findOneBy(array('keyword' => 'headers.frontpage', 'locale' => 'en')); |
|
50 | $this->assertEquals('a not yet updated frontpage header', $translation->getText()); |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * @group importer-isolated |
|
@@ 56-64 (lines=9) @@ | ||
53 | /** |
|
54 | * @group importer-isolated |
|
55 | */ |
|
56 | public function testImportExistingDomainFileForced() |
|
57 | { |
|
58 | foreach ($this->getExistingDomainTestFinder() as $file) { |
|
59 | $this->importer->import($file, true); |
|
60 | } |
|
61 | ||
62 | $translation = $this->translationRepository->findOneBy(array('keyword' => 'headers.frontpage', 'locale' => 'en')); |
|
63 | $this->assertEquals('FrontPage', $translation->getText()); |
|
64 | } |
|
65 | ||
66 | public function getNewDomainTestFinder() |
|
67 | { |