Skip to content

Commit 8c0e844

Browse files
committed
Fix export test with watch
1 parent cd0ada6 commit 8c0e844

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

tests/LarexExportTest.php

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ public function test_larex_command(): void
7373
$this->getTestStub('export/larex-output-en-another'),
7474
File::get(resource_path('lang/en/another.php'))
7575
);
76-
76+
7777
self::assertEquals(
7878
$this->getTestStub('export/larex-output-it-app'),
7979
File::get(resource_path('lang/it/app.php'))
8080
);
81-
81+
8282
self::assertEquals(
8383
$this->getTestStub('export/larex-output-it-another'),
8484
File::get(resource_path('lang/it/another.php'))
@@ -93,21 +93,35 @@ public function test_larex_watch(): void
9393
->expectsOutput("Processing the '$this->file' file...")
9494
->expectsOutput("resources/lang/en/app.php created successfully.")
9595
->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.")
9698
->expectsOutput('Waiting for changes...')
9799
->run();
98100

99101
self::assertFileExists(resource_path('lang/en/app.php'));
100102
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'));
101105

102106
self::assertEquals(
103-
$this->getTestStub('export/larex-output-app'),
107+
$this->getTestStub('export/larex-output-en-app'),
104108
File::get(resource_path('lang/en/app.php'))
105109
);
106110

107111
self::assertEquals(
108-
$this->getTestStub('export/larex-output-another'),
112+
$this->getTestStub('export/larex-output-en-another'),
109113
File::get(resource_path('lang/en/another.php'))
110114
);
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+
);
111125
}
112126

113127
public function test_larex_command_with_numeric_keys(): void

0 commit comments

Comments
 (0)