diff --git i/tests/TestCase.php w/tests/TestCase.php index c58ad54..d9d2faf 100644 --- i/tests/TestCase.php +++ w/tests/TestCase.php @@ -9,4 +9,24 @@ abstract class TestCase extends BaseTestCase { use CreatesApplication; use DatabaseTransactions; +// use RestartsDatabase; + + /** + * Boot the app's testing helper traits. + * + * Extends how Laravel sets up its default testing traits. + * + * @return array + * @throws \Exception + */ + protected function setUpTraits() + { + $uses = parent::setUpTraits(); + + if (isset($uses[RestartsDatabase::class])) { + $this->restartDatabase(); + } + + return $uses; + } }