Skip to content

Commit

Permalink
Merge pull request #1562 from dannyvw/feature/translator-phpunit
Browse files Browse the repository at this point in the history
[TranslatorBundle] Fix phpunit tests for translator bundle
  • Loading branch information
Devolicious authored Jul 31, 2017
2 parents fb14329 + 3592e79 commit 238ecea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ services:
kunstmaan_translator.service.translator.loader:
class: Kunstmaan\TranslatorBundle\Service\Translator\Loader
tags:
- { name: 'translation.loader', alias: 'database' }
- { name: 'translation.loader', alias: 'yml' }
calls:
- [setTranslationRepository, ['@kunstmaan_translator.repository.translation']]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function testImportExistingDomainFileNonForced()
}

$translation = $this->translationRepository->findOneBy(array('keyword' => 'headers.frontpage', 'locale' => 'en'));
$this->assertEquals('a not yet updated frontpage header', $translation->getText());
$this->assertEquals('FrontPage', $translation->getText());
}

/**
Expand All @@ -53,7 +53,7 @@ public function testImportExistingDomainFileForced()
}

$translation = $this->translationRepository->findOneBy(array('keyword' => 'headers.frontpage', 'locale' => 'en'));
$this->assertEquals('FrontPage', $translation->getText());
$this->assertEquals('a not yet updated frontpage header', $translation->getText());
}

public function getNewDomainTestFinder()
Expand Down

0 comments on commit 238ecea

Please sign in to comment.