I am using DatabaseTransactions during my testing in order not to commit database transactions:
class CreditTest extends TestCase
{
use DatabaseTransactions;
Everything works as expected except for the setUp() method.
When i insert data into the database it commits it.
- Why does that happen?
- how can i avoid it?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire