| Conditions | 1 |
| Paths | 1 |
| Total Lines | 31 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function getConnectionExceptionDataProvider(): array |
||
| 17 | { |
||
| 18 | return [ |
||
| 19 | [ |
||
| 20 | function () { |
||
| 21 | Conf::deleteConfigValue('default-db-connection/dsn'); |
||
| 22 | $this->setUser('user'); |
||
| 23 | $this->setPassword('password'); |
||
| 24 | $mock = $this->getMock(); |
||
| 25 | $mock->setConnection(false); |
||
| 26 | return $mock; |
||
| 27 | } |
||
| 28 | ], |
||
| 29 | [ |
||
| 30 | function () { |
||
| 31 | $this->setDsn('dsn'); |
||
| 32 | Conf::deleteConfigValue('default-db-connection/user'); |
||
| 33 | $this->setPassword('password'); |
||
| 34 | $mock = $this->getMock(); |
||
| 35 | $mock->setConnection(false); |
||
| 36 | return $mock; |
||
| 37 | } |
||
| 38 | ], |
||
| 39 | [ |
||
| 40 | function () { |
||
| 41 | $this->setDsn('dsn'); |
||
| 42 | $this->setUser('user'); |
||
| 43 | Conf::deleteConfigValue('default-db-connection/password'); |
||
| 44 | $mock = $this->getMock(); |
||
| 45 | $mock->setConnection(false); |
||
| 46 | return $mock; |
||
| 47 | } |
||
| 71 |