1 | <?php |
||
7 | trait UsesDatabase |
||
8 | { |
||
9 | /** @var string */ |
||
10 | protected $database = __DIR__.'/../database/testing.sqlite'; |
||
11 | |||
12 | /** @var bool */ |
||
13 | protected static $migrated = false; |
||
14 | |||
15 | public function prepareDatabase($force = false) |
||
27 | |||
28 | public function setUpDatabase(callable $afterMigrations = null) |
||
44 | |||
45 | public function beginDatabaseTransaction() |
||
59 | |||
60 | protected function connectionsToTransact(): array |
||
65 | } |
||
66 |
If you suppress an error, we recommend checking for the error condition explicitly: