diff --git a/src/Support/AutoloadManager.php b/src/Support/AutoloadManager.php index 207660d..6cd2665 100644 --- a/src/Support/AutoloadManager.php +++ b/src/Support/AutoloadManager.php @@ -350,8 +350,12 @@ protected function resolveAppNamespace() public static function partialMock() { - return Mockery::mock(AutoloadManager::class, [null]) + $mock = Mockery::mock(AutoloadManager::class, [null]) ->makePartial() ->shouldAllowMockingProtectedMethods(); + + $mock->shouldReceive('isBooted')->andReturn(false); + + return $mock; } }