18
18
use Symfony \Component \DependencyInjection \Reference ;
19
19
use Symfony \Component \Translation \DependencyInjection \TranslatorPass ;
20
20
21
- class TranslationPassTest extends TestCase
21
+ class TranslatorPassTest extends TestCase
22
22
{
23
23
public function testValidCollector ()
24
24
{
@@ -35,7 +35,7 @@ public function testValidCollector()
35
35
$ container ->setDefinition ('translation.reader ' , $ reader );
36
36
$ container ->setDefinition ('translation.xliff_loader ' , $ loader );
37
37
38
- $ pass = new TranslatorPass (' translator.default ' , ' translation.reader ' );
38
+ $ pass = new TranslatorPass ();
39
39
$ pass ->process ($ container );
40
40
41
41
$ expectedReader = (new Definition ())
@@ -72,7 +72,7 @@ public function testValidCommandsViewPathsArgument()
72
72
;
73
73
$ container ->setParameter ('twig.default_path ' , 'templates ' );
74
74
75
- $ pass = new TranslatorPass (' translator.default ' );
75
+ $ pass = new TranslatorPass ();
76
76
$ pass ->process ($ container );
77
77
78
78
$ expectedViewPaths = ['other/templates ' , 'tpl ' ];
@@ -113,7 +113,7 @@ public function testCommandsViewPathsArgumentsAreIgnoredWithOldServiceDefinition
113
113
;
114
114
$ container ->setParameter ('twig.default_path ' , 'templates ' );
115
115
116
- $ pass = new TranslatorPass (' translator.default ' );
116
+ $ pass = new TranslatorPass ();
117
117
$ pass ->process ($ container );
118
118
119
119
$ this ->assertSame ('templates ' , $ debugCommand ->getArgument (4 ));
0 commit comments