Skip to content

Commit f6609f1

Browse files
committed
Rename translation:check to translation:check-missing
1 parent e473d14 commit f6609f1

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Command/CheckCommand.php renamed to Command/CheckMissingCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
use Translation\Bundle\Service\ConfigurationManager;
1818
use Translation\Bundle\Service\Importer;
1919

20-
final class CheckCommand extends Command
20+
final class CheckMissingCommand extends Command
2121
{
22-
protected static $defaultName = 'translation:check';
22+
protected static $defaultName = 'translation:check-missing';
2323

2424
/**
2525
* @var ConfigurationManager

Resources/config/console.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
services:
2-
Translation\Bundle\Command\CheckCommand:
2+
Translation\Bundle\Command\CheckMissingCommand:
33
public: true
44
arguments:
55
- '@Translation\Bundle\Service\ConfigurationManager'
66
- '@Translation\Bundle\Catalogue\CatalogueFetcher'
77
- '@Translation\Bundle\Service\Importer'
88
- '@Translation\Bundle\Catalogue\CatalogueCounter'
99
tags:
10-
- { name: console.command, command: translation:check }
10+
- { name: console.command, command: translation:check-missing }
1111

1212
Translation\Bundle\Command\DeleteObsoleteCommand:
1313
public: true

Tests/Functional/Command/CheckCommandTest.php renamed to Tests/Functional/Command/CheckMissingCommandTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Symfony\Component\Console\Tester\CommandTester;
99
use Translation\Bundle\Tests\Functional\BaseTestCase;
1010

11-
class CheckCommandTest extends BaseTestCase
11+
class CheckMissingCommandTest extends BaseTestCase
1212
{
1313
/**
1414
* @var Application
@@ -64,7 +64,7 @@ protected function setUp(): void
6464

6565
public function testReportsMissingTranslations(): void
6666
{
67-
$commandTester = new CommandTester($this->application->find('translation:check'));
67+
$commandTester = new CommandTester($this->application->find('translation:check-missing'));
6868

6969
$commandTester->execute(['locale' => 'sv', 'configuration' => 'app']);
7070

@@ -80,7 +80,7 @@ public function testReportsEmptyTranslationMessages(): void
8080
// run translation:extract first, so all translations are extracted
8181
(new CommandTester($this->application->find('translation:extract')))->execute(['locale' => 'sv']);
8282

83-
$commandTester = new CommandTester($this->application->find('translation:check'));
83+
$commandTester = new CommandTester($this->application->find('translation:check-missing'));
8484

8585
$commandTester->execute(['locale' => 'sv', 'configuration' => 'app']);
8686

@@ -181,7 +181,7 @@ public function testReportsNoNewTranslationMessages(): void
181181
XML
182182
);
183183

184-
$commandTester = new CommandTester($this->application->find('translation:check'));
184+
$commandTester = new CommandTester($this->application->find('translation:check-missing'));
185185

186186
$commandTester->execute(['locale' => 'sv', 'configuration' => 'app']);
187187

0 commit comments

Comments
 (0)