Skip to content

Commit

Permalink
revert fix Kunstmaan#1562 with new solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Devolicious authored and cv65kr committed Nov 17, 2017
1 parent eb2eff0 commit cdb6217
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: 'yml' }
- { name: 'translation.loader', alias: 'database' }
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('FrontPage', $translation->getText());
$this->assertEquals('a not yet updated frontpage header', $translation->getText());
}

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

$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());
}

public function getNewDomainTestFinder()
Expand Down

0 comments on commit cdb6217

Please sign in to comment.