File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 4
4
5
5
namespace MongoDB \Laravel \Tests \Eloquent ;
6
6
7
- use Carbon \CarbonImmutable ;
8
- use Illuminate \Support \Facades \Date ;
9
- use MongoDB \Laravel \Tests \Models \Anniversary ;
10
7
use MongoDB \Laravel \Tests \Models \HiddenAnimal ;
11
8
use MongoDB \Laravel \Tests \TestCase ;
12
9
@@ -19,7 +16,6 @@ protected function setUp(): void
19
16
parent ::setUp ();
20
17
21
18
HiddenAnimal::truncate ();
22
- Anniversary::truncate ();
23
19
}
24
20
25
21
public function testCanHideCertainProperties (): void
@@ -39,18 +35,4 @@ public function testCanHideCertainProperties(): void
39
35
self ::assertArrayNotHasKey ('country ' , $ hiddenAnimal ->toArray (), 'the country column should be hidden ' );
40
36
self ::assertArrayHasKey ('can_be_eaten ' , $ hiddenAnimal ->toArray ());
41
37
}
42
-
43
- public function testCanReturnCarbonImmutableObject (): void
44
- {
45
- Date::use (CarbonImmutable::class);
46
-
47
- Anniversary::create ([
48
- 'name ' => 'John ' ,
49
- 'anniversary ' => new CarbonImmutable ('2020-01-01 00:00:00 ' ),
50
- ]);
51
-
52
- $ anniversary = Anniversary::sole ();
53
- assert ($ anniversary instanceof Anniversary);
54
- self ::assertInstanceOf (CarbonImmutable::class, $ anniversary ->anniversary );
55
- }
56
38
}
You can’t perform that action at this time.
0 commit comments