8000 Remove failing test · symfony/symfony@5392a0c · GitHub
[go: up one dir, main page]

Skip to content

Commit 5392a0c

Browse files
committed
Remove failing test
Fixes #15935, test has been removed on 2.8 already in https://github.com/symfony/symfony/pull/15738/files#diff-990df0e8238847f8ae54e8227f295c22L107
1 parent ea2bd2a commit 5392a0c

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Translation/TranslatorTest.php

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -104,34 +104,6 @@ public function testTransWithCachingWithInvalidLocale()
104104
$translator->trans('foo');
105105
}
106106

107-
public function testLoadResourcesWithCaching()
108-
{
109-
$loader = new \Symfony\Component\Translation\Loader\YamlFileLoader();
110-
$resourceFiles = array(
111-
'fr' => array(
112-
__DIR__.'/../Fixtures/Resources/translations/messages.fr.yml',
113-
),
114-
);
115-
116-
// prime the cache
117-
$translator = $this->getTranslator($loader, array('cache_dir' => $this->tmpDir, 'resource_files' => $resourceFiles), 'yml');
118-
$translator->setLocale('fr');
119-
120-
$this->assertEquals('répertoire', $translator->trans('folder'));
121-
122-
// do it another time as the cache is primed now
123-
$translator = $this->getTranslator($loader, array('cache_dir' => $this->tmpDir), 'yml');
124-
$translator->setLocale('fr');
125-
126-
$this->assertEquals('répertoire', $translator->trans('folder'));
127-
128-
// refresh cache when resources is changed in debug mode.
129-
$translator = $this->getTranslator($loader, array('cache_dir' => $this->tmpDir, 'debug' => true), 'yml');
130-
$translator->setLocale('fr');
131-
132-
$this->assertEquals('folder', $translator->trans('folder'));
133-
}
134-
135107
public function testLoadResourcesWithoutCaching()
136108
{
137109
$loader = new \Symfony\Component\Translation\Loader\YamlFileLoader();

0 commit comments

Comments
 (0)
0