diff --git a/tests/Foundation/Testing/WormholeTest.php b/tests/Foundation/Testing/WormholeTest.php index 17f286d7e377..da57ca2fd103 100644 --- a/tests/Foundation/Testing/WormholeTest.php +++ b/tests/Foundation/Testing/WormholeTest.php @@ -9,6 +9,13 @@ class WormholeTest extends TestCase { + protected function tearDown(): void + { + parent::tearDown(); + + Date::useDefault(); + } + public function testCanTravelBackToPresent() { // Preserve the timelines we want to compare the reality with... @@ -42,9 +49,6 @@ public function testCarbonImmutableCompatibility() // Assert the time travel was successful... $this->assertEquals($future->format('Y-m-d'), now()->format('Y-m-d')); - - // Restore the default Date Factory... - Date::useDefault(); } public function testItCanTravelByMicroseconds() @@ -57,7 +61,5 @@ public function testItCanTravelByMicroseconds() (new Wormhole(5))->microseconds(); $this->assertSame('2000-01-01 00:00:00.000006', Date::now()->format('Y-m-d H:i:s.u')); - - Date::useDefault(); } } diff --git a/tests/Integration/Database/DatabaseSchemaBlueprintTest.php b/tests/Integration/Database/DatabaseSchemaBlueprintTest.php index 6e755b41e93b..dbe7a470fade 100644 --- a/tests/Integration/Database/DatabaseSchemaBlueprintTest.php +++ b/tests/Integration/Database/DatabaseSchemaBlueprintTest.php @@ -514,7 +514,7 @@ public function testAddColumnNamedCreateWorks() }); Schema::table('users', function (Blueprint $table) { - $table->string('create'); + $table->string('create')->nullable(); }); $this->assertTrue(Schema::hasColumn('users', 'create'));