@@ -73,12 +73,12 @@ public function test_larex_command(): void
73
73
$ this ->getTestStub ('export/larex-output-en-another ' ),
74
74
File::get (resource_path ('lang/en/another.php ' ))
75
75
);
76
-
76
+
77
77
self ::assertEquals (
78
78
$ this ->getTestStub ('export/larex-output-it-app ' ),
79
79
File::get (resource_path ('lang/it/app.php ' ))
80
80
);
81
-
81
+
82
82
self ::assertEquals (
83
83
$ this ->getTestStub ('export/larex-output-it-another ' ),
84
84
File::get (resource_path ('lang/it/another.php ' ))
@@ -93,21 +93,35 @@ public function test_larex_watch(): void
93
93
->expectsOutput ("Processing the ' $ this ->file ' file... " )
94
94
->expectsOutput ("resources/lang/en/app.php created successfully. " )
95
95
->expectsOutput ("resources/lang/en/another.php created successfully. " )
96
+ ->expectsOutput ("resources/lang/it/app.php created successfully. " )
97
+ ->expectsOutput ("resources/lang/it/another.php created successfully. " )
96
98
->expectsOutput ('Waiting for changes... ' )
97
99
->run ();
98
100
99
101
self ::assertFileExists (resource_path ('lang/en/app.php ' ));
100
102
self ::assertFileExists (resource_path ('lang/en/another.php ' ));
103
+ self ::assertFileExists (resource_path ('lang/it/app.php ' ));
104
+ self ::assertFileExists (resource_path ('lang/it/another.php ' ));
101
105
102
106
self ::assertEquals (
103
- $ this ->getTestStub ('export/larex-output-app ' ),
107
+ $ this ->getTestStub ('export/larex-output-en- app ' ),
104
108
File::get (resource_path ('lang/en/app.php ' ))
105
109
);
106
110
107
111
self ::assertEquals (
108
- $ this ->getTestStub ('export/larex-output-another ' ),
112
+ $ this ->getTestStub ('export/larex-output-en- another ' ),
109
113
File::get (resource_path ('lang/en/another.php ' ))
110
114
);
115
+
116
+ self ::assertEquals (
117
+ $ this ->getTestStub ('export/larex-output-it-app ' ),
118
+ File::get (resource_path ('lang/it/app.php ' ))
119
+ );
120
+
121
+ self ::assertEquals (
122
+ $ this ->getTestStub ('export/larex-output-it-another ' ),
123
+ File::get (resource_path ('lang/it/another.php ' ))
124
+ );
111
125
}
112
126
113
127
public function test_larex_command_with_numeric_keys (): void
0 commit comments