Skip to content

Commit

Permalink
Creates .env file before running command
Browse files Browse the repository at this point in the history
  • Loading branch information
little-apps committed Jun 2, 2024
1 parent d492805 commit 5709f94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Features/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ public function test_secret_phrase_generated_for_new_key()
*/
public function test_generate_valid_size()
{
$this->withoutMockingConsoleOutput()->artisan('littlejwt:phrase', ['--size' => '1024', '--yes' => true]);
$this->createEnvFile();

dd(Artisan::output());
$this->artisan('littlejwt:phrase', ['--size' => '1024', '--yes' => true])
->assertSuccessful();
}

/**
Expand Down

0 comments on commit 5709f94

Please sign in to comment.