8000 [FrameworkBundle] Fix TranslationUpdateCommand tests after a merge · symfony/symfony@d093c40 · GitHub
[go: up one dir, main page]

Skip to content

Commit d093c40

Browse files
committed
[FrameworkBundle] Fix TranslationUpdateCommand tests after a merge
1 parent f5c1b1c commit d093c40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Command/TranslationUpdateCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testDumpMessagesAndClean()
3333

3434
public function testDumpTwoMessagesAndClean()
3535
{
36-
$tester = $this->createCommandTester($this->getContainer(array('foo' => 'foo', 'bar' => 'bar')));
36+
$tester = $this->createCommandTester($this->getContainer(array('messages' => array('foo' => 'foo', 'bar' => 'bar'))));
3737
$tester->execute(array('command' => 'translation:update', 'locale' => 'en', 'bundle' => 'foo', '--dump-messages' => true, '--clean' => true));
3838
$this->assertRegExp('/foo/', $tester->getDisplay());
3939
$this->assertRegExp('/bar/', $tester->getDisplay());
@@ -45,7 +45,7 @@ public function testDumpMessagesForSpecificDomain()
4545
$tester = $this->createCommandTester($this->getContainer(array('messages' => array('foo' => 'foo'), 'mydomain' => array('bar' => 'bar'))));
4646
$tester->execute(array('command' => 'translation:update', 'locale' => 'en', 'bundle' => 'foo', '--dump-messages' => true, '--clean' => true, '--domain' => 'mydomain'));
4747
$this->assertRegExp('/bar/', $tester->getDisplay());
48-
$this->assertRegExp('/2 messages were successfully extracted/', $tester->getDisplay());
48+
$this->assertRegExp('/1 message was successfully extracted/', $tester->getDisplay());
4949
}
5050

5151
public function testWriteMessages()

0 commit comments

Comments
 (0)
0