File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 9
9
10
10
class WormholeTest extends TestCase
11
11
{
12
+ protected function tearDown (): void
13
+ {
14
+ parent ::tearDown ();
15
+
16
+ Date::useDefault ();
17
+ }
18
+
12
19
public function testCanTravelBackToPresent ()
13
20
{
14
21
// Preserve the timelines we want to compare the reality with...
@@ -42,9 +49,6 @@ public function testCarbonImmutableCompatibility()
42
49
43
50
// Assert the time travel was successful...
44
51
$ this ->assertEquals ($ future ->format ('Y-m-d ' ), now ()->format ('Y-m-d ' ));
45
-
46
- // Restore the default Date Factory...
47
- Date::useDefault ();
48
52
}
49
53
50
54
public function testItCanTravelByMicroseconds ()
@@ -57,7 +61,5 @@ public function testItCanTravelByMicroseconds()
57
61
58
62
(new Wormhole (5 ))->microseconds ();
59
63
$ this ->assertSame ('2000-01-01 00:00:00.000006 ' , Date::now ()->format ('Y-m-d H:i:s.u ' ));
60
-
61
- Date::useDefault ();
62
64
}
63
65
}
Original file line number Diff line number Diff line change @@ -514,7 +514,7 @@ public function testAddColumnNamedCreateWorks()
514
514
});
515
515
516
516
Schema::table ('users ' , function (Blueprint $ table ) {
517
- $ table ->string ('create ' );
517
+ $ table ->string ('create ' )-> nullable () ;
518
518
});
519
519
520
520
$ this ->assertTrue (Schema::hasColumn ('users ' , 'create ' ));
You can’t perform that action at this time.
0 commit comments