8383 ->toEqualStub ('importers.laravel.territory.output ' );
8484});
8585
86- it (
87- 'imports strings and set the source language ' ,
86+ it ('imports strings and set the source language ' ,
8887 function (string $ source , string $ expected , bool $ skipSourceReordering ) {
8988 File::makeDirectory (lang_path ('ar ' ), 0755 , true , true );
9089 File::makeDirectory (lang_path ('en ' ), 0755 , true , true );
@@ -96,10 +95,8 @@ function (string $source, string $expected, bool $skipSourceReordering) {
9695
9796 config (['larex.source_language ' => $ source ]);
9897
99- $ this ->artisan (
100- LarexImportCommand::class,
101- ['importer ' => 'laravel ' , '--skip-source-reordering ' => $ skipSourceReordering ]
102- )
98+ $ this ->artisan (LarexImportCommand::class,
99+ ['importer ' => 'laravel ' , '--skip-source-reordering ' => $ skipSourceReordering ])
103100 ->expectsOutput ('Importing entries... ' )
104101 ->expectsOutput ('Data imported successfully. ' )
105102 ->assertExitCode (0 );
@@ -108,13 +105,12 @@ function (string $source, string $expected, bool $skipSourceReordering) {
108105 ->toBeFile ()
109106 ->fileContent ()
110107 ->toEqualStub ($ expected );
111- }
112- )->with ([
113- 'ar ' => ['ar ' , 'importers.laravel.source.output-ar ' , false ],
114- 'en ' => ['en ' , 'importers.laravel.source.output-en ' , false ],
115- 'en-skip ' => ['en ' , 'importers.laravel.source.output-ar ' , true ],
116- 'invalid-lang ' => ['es ' , 'importers.laravel.source.output-ar ' , false ],
117- ]);
108+ })->with ([
109+ 'ar ' => ['ar ' , 'importers.laravel.source.output-ar ' , false ],
110+ 'en ' => ['en ' , 'importers.laravel.source.output-en ' , false ],
111+ 'en-skip ' => ['en ' , 'importers.laravel.source.output-ar ' , true ],
112+ 'invalid-lang ' => ['es ' , 'importers.laravel.source.output-ar ' , false ],
113+ ]);
118114
119115it ('imports strings with normalize option on ' , function () {
120116 File::makeDirectory (lang_path ('en ' ), 0755 , true , true );
0 commit comments