From c1216b7ad83d59f14fc155d89b1fab489eed2f4b Mon Sep 17 00:00:00 2001 From: dkc Date: Wed, 2 Nov 2022 10:23:30 +0900 Subject: [PATCH] Add file publish tests --- tests/CommandTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/CommandTest.php b/tests/CommandTest.php index f810df9..6d529e7 100644 --- a/tests/CommandTest.php +++ b/tests/CommandTest.php @@ -7,3 +7,11 @@ ->expectsOutput('日本語ファイルのインストールが完了しました!') ->assertExitCode(0); }); + +it('can see published files', closure: function () { + $this->assertFileExists(base_path('lang/ja.json')); + $this->assertFileExists(base_path('lang/ja/auth.php')); + $this->assertFileExists(base_path('lang/ja/pagination.php')); + $this->assertFileExists(base_path('lang/ja/passwords.php')); + $this->assertFileExists(base_path('lang/ja/validation.php')); +});