[Translation] fix test case name

This commit is contained in:
Nicolas Grekas 2021-03-15 13:52:35 +01:00
parent bc87acdf77
commit e2dffea49d
2 changed files with 5 additions and 5 deletions

View File

@ -1723,7 +1723,7 @@ abstract class FrameworkExtensionTest extends TestCase
$container->getCompilerPassConfig()->setAfterRemovingPasses([]);
}
$container->getCompilerPassConfig()->setBeforeOptimizationPasses([new LoggerPass()]);
$container->getCompilerPassConfig()->setBeforeRemovingPasses([new AddConstraintValidatorsPass(), new TranslatorPass('translator.default', 'translation.reader')]);
$container->getCompilerPassConfig()->setBeforeRemovingPasses([new AddConstraintValidatorsPass(), new TranslatorPass()]);
$container->getCompilerPassConfig()->setAfterRemovingPasses([new AddAnnotationsCachedReaderPass()]);
if (!$compile) {

View File

@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\Translation\DependencyInjection\TranslatorPass;
class TranslationPassTest extends TestCase
class TranslatorPassTest extends TestCase
{
public function testValidCollector()
{
@ -35,7 +35,7 @@ class TranslationPassTest extends TestCase
$container->setDefinition('translation.reader', $reader);
$container->setDefinition('translation.xliff_loader', $loader);
$pass = new TranslatorPass('translator.default', 'translation.reader');
$pass = new TranslatorPass();
$pass->process($container);
$expectedReader = (new Definition())
@ -72,7 +72,7 @@ class TranslationPassTest extends TestCase
;
$container->setParameter('twig.default_path', 'templates');
$pass = new TranslatorPass('translator.default');
$pass = new TranslatorPass();
$pass->process($container);
$expectedViewPaths = ['other/templates', 'tpl'];
@ -113,7 +113,7 @@ class TranslationPassTest extends TestCase
;
$container->setParameter('twig.default_path', 'templates');
$pass = new TranslatorPass('translator.default');
$pass = new TranslatorPass();
$pass->process($container);
$this->assertSame('templates', $debugCommand->getArgument(4));