$application->
add($command);
return new CommandTester($application->
find('translation:push'
));
} private function createCommand(ProviderInterface
$provider, array
$locales =
['en'
], array
$domains =
['messages'
], array
$providerNames =
['loco'
]): TranslationPushCommand
{ $reader =
new TranslationReader();
$reader->
addLoader('xlf',
new XliffFileLoader());
return new TranslationPushCommand( $this->
getProviderCollection($provider,
$providerNames,
$locales,
$domains),
$reader,
[$this->translationAppDir.'/translations'
],
$locales );
}}