Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix condition
Browse files Browse the repository at this point in the history
askdkc committed Jan 16, 2024
1 parent b4905e2 commit 4385358
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/CommandTest.php
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
->expectsOutput('日本語ファイルのインストールが完了しました!')
->assertExitCode(0);

if (11 > (int) substr(Illuminate\Foundation\Application::VERSION, 0, 2)) {
if ((int) substr(Illuminate\Foundation\Application::VERSION, 0, 2) < 11) {
$configfile = file_get_contents(base_path('config/app.php'));
$this->assertStringContainsString("'locale' => 'ja'", $configfile);
$this->assertStringContainsString("'faker_locale' => 'ja_JP'", $configfile);
@@ -41,7 +41,7 @@
->expectsOutput('日本語ファイルのインストールが完了しました!')
->assertExitCode(0);

if (file_exists(base_path('config/app.php'))) {
if ((int) substr(Illuminate\Foundation\Application::VERSION, 0, 2) < 11) {
$configfile = file_get_contents(base_path('config/app.php'));
$this->assertStringContainsString("'timezone' => 'Asia/Tokyo'", $configfile);
} else { // For Laravel 11 and above

0 comments on commit 4385358

Please sign in to comment.