File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/Symfony/Bundle/FrameworkBundle/Tests/Functional Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bundle \FrameworkBundle \Tests \Functional ;
13
13
14
14
use Symfony \Bundle \FrameworkBundle \Console \Application ;
15
+ use Symfony \Bundle \FrameworkBundle \Command \TranslationDebugCommand ;
15
16
use Symfony \Component \Console \Tester \CommandTester ;
16
17
17
18
/**
@@ -32,7 +33,11 @@ public function testDumpAllTrans()
32
33
$ tester = $ this ->createCommandTester ();
33
34
$ ret = $ tester ->execute (['locale ' => 'en ' ]);
34
35
35
- $ this ->assertSame (0 , $ ret , 'Returns 0 in case of success ' );
36
+ $ this ->assertSame (
37
+ TranslationDebugCommand::EXIT_CODE_MISSING | TranslationDebugCommand::EXIT_CODE_UNUSED ,
38
+ $ ret ,
39
+ 'Returns appropriate exit code in the event of error '
40
+ );
36
41
$ this ->assertStringContainsString ('missing messages hello_from_construct_arg_service ' , $ tester ->getDisplay ());
37
42
$ this ->assertStringContainsString ('missing messages hello_from_subscriber_service ' , $ tester ->getDisplay ());
38
43
$ this ->assertStringContainsString ('missing messages hello_from_property_service ' , $ tester ->getDisplay ());
You can’t perform that action at this time.
0 commit comments