Skip to content

Commit

Permalink
Refactor to mock by default
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 22, 2024
1 parent 540c0c4 commit 2438471
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ protected function setUp(): void
Container::setInstance($app);

$this->filesystem = $this->mockFilesystemStrict();
$this->filesystem->shouldReceive('allFiles')->andReturn([])->byDefault();

File::swap($this->filesystem);
Blade::partialMock()->shouldReceive('component');
Expand Down Expand Up @@ -103,8 +104,6 @@ public function testHandle()

public function testFormatOutput()
{
$this->filesystem->shouldReceive('allFiles')->andReturn([]);

$helper = new InteractivePublishCommandHelper('hyde-layouts');

$output = $helper->formatOutput([
Expand Down

0 comments on commit 2438471

Please sign in to comment.