Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function testDisconnected(): void |
||
31 | { |
||
32 | $app = $this->makeApp(); |
||
33 | $db = $app->get(DatabaseInterface::class); |
||
34 | |||
35 | $db->getTables(); |
||
36 | $this->assertTrue($db->getDriver()->isConnected()); |
||
37 | |||
38 | $app->getBootloadManager()->bootload([DisconnectsBootloader::class]); |
||
39 | $this->assertTrue($db->getDriver()->isConnected()); |
||
40 | |||
41 | $app->get(FinalizerInterface::class)->finalize(); |
||
42 | |||
43 | $this->assertFalse($db->getDriver()->isConnected()); |
||
44 | } |
||
46 |