File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed
tests/TestingTools/Asserts Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change 77
88class DatabaseAssertsTest extends TestCase
99{
10- public function setUp ()
11- {
12- parent ::setUp ();
13-
14- $ this ->seedDatabase ();
15- }
16-
17- private function seedDatabase ()
18- {
19- factory (Post::class)->create (['title ' => 'First Post ' ]);
20- factory (Post::class)->create (['title ' => 'Second Post ' ]);
21- factory (Post::class)->create (['title ' => 'Third Post ' ]);
22- }
23-
2410 /** @test */
2511 public function it_has_see_database_table_assertion ()
2612 {
@@ -36,6 +22,10 @@ public function it_has_dont_see_database_table_assertion()
3622 /** @test */
3723 public function it_has_see_in_database_many_assertion ()
3824 {
25+ factory (Post::class)->create (['title ' => 'First Post ' ]);
26+ factory (Post::class)->create (['title ' => 'Second Post ' ]);
27+ factory (Post::class)->create (['title ' => 'Third Post ' ]);
28+
3929 $ this ->seeInDatabaseMany ('posts ' , [
4030 ['title ' => 'First Post ' ],
4131 ['title ' => 'Second Post ' ],
You can’t perform that action at this time.
0 commit comments