@@ -20,12 +20,12 @@ public function setUp(): void
20
20
User::create (['name ' => 'Tommy Toe ' , 'age ' => 33 , 'title ' => 'user ' ]);
21
21
User::create (['name ' => 'Yvonne Yoe ' , 'age ' => 35 , 'title ' => 'admin ' ]);
22
22
User::create (['name ' => 'Error ' , 'age ' => null , 'title ' => null ]);
23
- Birthday::create (['name ' => 'Mark Moe ' , 'birthday ' => Carbon::parse ('2020-04-10 10:53:11 ' )->toDateTimeString ());
24
- Birthday::create (['name ' => 'Jane Doe ' , 'birthday ' => Carbon::parse ('2021-05-12 10:53:12 ' )->toDateTimeString ());
25
- Birthday::create (['name ' => 'Harry Hoe ' , 'birthday ' => Carbon::parse ('2021-05-11 10:53:13 ' )->toDateTimeString ());
26
- Birthday::create (['name ' => 'Robert Doe ' , 'birthday ' => Carbon::parse ('2021-05-12 10:53:14 ' )->toDateTimeString ());
27
- Birthday::create (['name ' => 'Mark Moe ' , 'birthday ' => Carbon::parse ('2021-05-12 10:53:15 ' )->toDateTimeString ());
28
- Birthday::create (['name ' => 'Mark Moe ' , 'birthday ' => Carbon::parse ('2021-05-12 10:53:16 ' )->toDateTimeString ());
23
+ Birthday::create (['name ' => 'Mark Moe ' , 'birthday ' => Carbon::parse ('2020-04-10 10:53:11 ' )->toDateTimeString (), ' time ' => ' 10:53:11 ' );
24
+ Birthday::create (['name ' => 'Jane Doe ' , 'birthday ' => Carbon::parse ('2021-05-12 10:53:12 ' )->toDateTimeString (), ' time ' => ' 10:53:12 ' );
25
+ Birthday::create (['name ' => 'Harry Hoe ' , 'birthday ' => Carbon::parse ('2021-05-11 10:53:13 ' )->toDateTimeString (), ' time ' => ' 10:53:13 ' );
26
+ Birthday::create (['name ' => 'Robert Doe ' , 'birthday ' => Carbon::parse ('2021-05-12 10:53:14 ' )->toDateTimeString (), ' time ' => ' 10:53:14 ' );
27
+ Birthday::create (['name ' => 'Mark Moe ' , 'birthday ' => Carbon::parse ('2021-05-12 10:53:15 ' )->toDateTimeString (), ' time ' => ' 10:53:15 ' );
28
+ Birthday::create (['name ' => 'Mark Moe ' , 'birthday ' => Carbon::parse ('2021-05-12 10:53:16 ' )->toDateTimeString (), ' time ' => ' 10:53:16 ' );
29
29
}
30
30
31
31
public function tearDown (): void
@@ -213,10 +213,10 @@ public function testWhereYear(): void
213
213
214
214
public function testWhereTime (): void
215
215
{
216
- $ time = Birthday::whereTime ('birthday ' , '10:53:11 ' )->get ();
216
+ $ time = Birthday::whereTime ('time ' , '10:53:11 ' )->get ();
217
217
$ this ->assertCount (1 , $ time );
218
218
219
- $ time = Birthday::whereTime ('birthday ' , '>= ' , '10:53:14 ' )->get ();
219
+ $ time = Birthday::whereTime ('time ' , '>= ' , '10:53:14 ' )->get ();
220
220
$ this ->assertCount (3 , $ time );
221
221
}
222
222
0 commit comments