Skip to content

Commit 900c656

Browse files
Merge pull request #18 from stackkit/bugfix/failing-test-new-artisan-laravel-9
Update test to work with new Artisan command output
2 parents c451580 + d84c948 commit 900c656

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/TaskHandlerTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ public function it_executes_the_incoming_command()
7474

7575
$output = $this->taskHandler->handle();
7676

77-
$this->assertEquals('Current application environment: testing', $output);
77+
if (version_compare(app()->version(), '9.0.0', '>=')) {
78+
$this->assertStringContainsString('The application environment is [testing]', $output);
79+
} else {
80+
$this->assertEquals('Current application environment: testing', $output);
81+
}
7882
}
7983

8084
/** @test */

0 commit comments

Comments
 (0)