diff --git a/tests/TestCase.php b/tests/TestCase.php index 991fd3b1..194275a9 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,6 +2,7 @@ namespace Tests; +use Carbon\Carbon; use Illuminate\Contracts\Console\Kernel; use Illuminate\Foundation\Application; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; @@ -21,4 +22,14 @@ public function createApplication(): Application return $app; } + + /** + * Set up common test components. + */ + protected function setUp(): void + { + parent::setUp(); + + Carbon::setTestNow(); + } }