Skip to content

Commit

Permalink
Force interactive mode when mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Sep 20, 2023
1 parent 158eb3f commit bdebd65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Concerns/FakesInputOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ trait FakesInputOutput
*/
public static function fake(array $keys = []): void
{
// Force interactive mode when testing because we will be mocking the terminal.
static::interactive();

$mock = \Mockery::mock(Terminal::class);

$mock->shouldReceive('write')->byDefault();
Expand Down

0 comments on commit bdebd65

Please sign in to comment.