@@ -20,12 +20,12 @@ public function setUp(): void
2020 User::create (['name ' => 'Tommy Toe ' , 'age ' => 33 , 'title ' => 'user ' ]);
2121 User::create (['name ' => 'Yvonne Yoe ' , 'age ' => 35 , 'title ' => 'admin ' ]);
2222 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 ' );
2929 }
3030
3131 public function tearDown (): void
@@ -213,10 +213,10 @@ public function testWhereYear(): void
213213
214214 public function testWhereTime (): void
215215 {
216- $ time = Birthday::whereTime ('birthday ' , '10:53:11 ' )->get ();
216+ $ time = Birthday::whereTime ('time ' , '10:53:11 ' )->get ();
217217 $ this ->assertCount (1 , $ time );
218218
219- $ time = Birthday::whereTime ('birthday ' , '>= ' , '10:53:14 ' )->get ();
219+ $ time = Birthday::whereTime ('time ' , '>= ' , '10:53:14 ' )->get ();
220220 $ this ->assertCount (3 , $ time );
221221 }
222222
0 commit comments