<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Tests\TestCase;
class OrdersTest extends TestCase
{
use DatabaseMigrations;
/** @test */
public function foobar()
{
$this->assertTrue(true);
}
}
and i have database.sqlite file at database directory
when i run the test it's refresh my main database "mysql"
can't make phpunit configurations to work with DatabaseMigrations trait
here is my phpunit.xml file :
here is my testclass :
and i have database.sqlite file at database directory
when i run the test it's refresh my main database "mysql"