Skip to content

Commit bdebd65

Browse files
committed
Force interactive mode when mocking
1 parent 158eb3f commit bdebd65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Concerns/FakesInputOutput.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ trait FakesInputOutput
1616
*/
1717
public static function fake(array $keys = []): void
1818
{
19+
// Force interactive mode when testing because we will be mocking the terminal.
20+
static::interactive();
21+
1922
$mock = \Mockery::mock(Terminal::class);
2023

2124
$mock->shouldReceive('write')->byDefault();

0 commit comments

Comments
 (0)