File tree 1 file changed +6
-4
lines changed 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,12 @@ public function testGenerateFullConfiguration()
17
17
18
18
$ this ->assertSame (0 , $ tester ->execute (['env-mode ' => 'staging ' ]));
19
19
20
- $ expected = '* * * * * project_staging php7.3 path/to/staging app:test --env=staging ' ;
20
+ $ expected = '* * * * * project_staging php7.3 path/to/staging app:test ' ;
21
21
22
22
$ cacheDir = $ kernel ->getContainer ()->getParameter ('kernel.cache_dir ' ).'/cron_test ' ;
23
23
24
- $ this ->assertStringContainsString ($ expected , file_get_contents ($ cacheDir ));
24
+ $ this ->assertStringContainsString ($ expected , $ content = file_get_contents ($ cacheDir ));
25
+ $ this ->assertStringContainsString ('APP_ENV=staging ' , $ content );
25
26
}
26
27
27
28
public function testGenerateEmptyCrons ()
@@ -52,9 +53,10 @@ public function testDryRun()
52
53
$ this ->assertStringContainsString ('[OK] Dry run generated ' , $ tester ->getDisplay ());
53
54
$ this ->assertStringContainsString ('# send email ' , $ tester ->getDisplay ());
54
55
$ this ->assertStringContainsString (
55
- '* * * * * project_staging php7.3 path/to/staging app:test --env=staging ' ,
56
- $ tester ->getDisplay ()
56
+ '* * * * * project_staging php7.3 path/to/staging app:test ' ,
57
+ $ display = $ tester ->getDisplay ()
57
58
);
59
+ $ this ->assertStringContainsString ('APP_ENV=staging ' , $ display );
58
60
}
59
61
60
62
public function testCheckExecutivePath ()
You can’t perform that action at this time.
0 commit comments