Skip to content

Commit

Permalink
Properly set up process mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Apr 28, 2024
1 parent 09e939e commit 6a80a13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/framework/tests/Unit/ServeCommandOptionsUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Mockery;
use Hyde\Testing\UnitTestCase;
use Hyde\Foundation\HydeKernel;
use Illuminate\Process\Factory;
use Illuminate\Console\OutputStyle;
use Hyde\Console\Commands\ServeCommand;
use Illuminate\Support\Facades\Process;
Expand All @@ -26,6 +27,9 @@ protected function setUp(): void
'hyde.server.host' => 'localhost',
'hyde.server.port' => 8080,
]);

Process::swap(new Factory());
Process::preventStrayProcesses();
}

protected function tearDown(): void
Expand Down

0 comments on commit 6a80a13

Please sign in to comment.