File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -117,18 +117,29 @@ docker-compose up
117117Database Testing
118118-------
119119
120- Resetting The Database After Each Test
120+ To reset the database after each test, add:
121121
122122``` php
123123use Illuminate\Foundation\Testing\DatabaseMigrations;
124124```
125125
126- And inside each test classes.
126+ Also inside each test classes, add:
127127
128128``` php
129129use DatabaseMigrations;
130130```
131131
132+ Keep in mind that currently this isn't supported and should be removed:
133+
134+ ``` php
135+ use DatabaseTransactions;
136+ ```
137+ and
138+
139+ ``` php
140+ use RefreshDatabase;
141+ ```
142+
132143Configuration
133144-------------
134145You can use MongoDB either as the main database, either as a side database. To do so, add a new ` mongodb ` connection to ` config/database.php ` :
You can’t perform that action at this time.
0 commit comments