Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | abstract class EloquentTestCase extends TestCase |
||
12 | { |
||
13 | protected function connection(): ConnectionInterface |
||
14 | { |
||
15 | return Model::getConnectionResolver()->connection(); |
||
16 | } |
||
17 | |||
18 | abstract protected function createSchema(): void; |
||
19 | |||
20 | protected function schema(): Builder |
||
21 | { |
||
22 | return $this->connection()->getSchemaBuilder(); |
||
23 | } |
||
24 | |||
25 | protected function setUp(): void |
||
38 | } |
||
39 | } |
||
40 |