You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
985 B
30 lines
985 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\Tests\CoreBundle\Command;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
|
use Symfony\Component\Console\Command\Command;
|
|
use Symfony\Component\Console\Tester\CommandTester;
|
|
|
|
class UpdateVueTranslationsTest extends KernelTestCase
|
|
{
|
|
public function testExecute(): void
|
|
{
|
|
$kernel = static::createKernel();
|
|
$application = new Application($kernel);
|
|
|
|
$command = $application->find('chamilo:update_vue_translations');
|
|
$commandTester = new CommandTester($command);
|
|
$commandTester->execute([]);
|
|
|
|
// the output of the command in the console
|
|
$output = $commandTester->getDisplay();
|
|
$this->assertStringNotContainsString('json file generated for iso en_US', $output);
|
|
$this->assertStringContainsString('json file generated for iso fr_FR', $output);
|
|
}
|
|
}
|
|
|