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
117
117
Database Testing
118
118
-------
119
119
120
- Resetting The Database After Each Test
120
+ To reset the database after each test, add:
121
121
122
122
``` php
123
123
use Illuminate\Foundation\Testing\DatabaseMigrations;
124
124
```
125
125
126
- And inside each test classes.
126
+ Also inside each test classes, add:
127
127
128
128
``` php
129
129
use DatabaseMigrations;
130
130
```
131
131
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
+
132
143
Configuration
133
144
-------------
134
145
You 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