We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7935cda commit a0d064cCopy full SHA for a0d064c
Tests/Transport/Doctrine/DoctrineIntegrationTest.php
@@ -37,11 +37,8 @@ public function cleanup()
37
*/
38
public function createConnection()
39
{
40
- if ($dsn = getenv('MESSENGER_DOCTRINE_DSN')) {
41
- $this->driverConnection = DriverManager::getConnection(['url' => $dsn]);
42
- } else {
43
- $this->driverConnection = DriverManager::getConnection(['pdo' => new \PDO('sqlite:'.sys_get_temp_dir().'/symfony.messenger.sqlite')]);
44
- }
+ $dsn = getenv('MESSENGER_DOCTRINE_DSN') ?: 'sqlite:///'.sys_get_temp_dir().'/symfony.messenger.sqlite';
+ $this->driverConnection = DriverManager::getConnection(['url' => $dsn]);
45
$this->connection = new Connection([], $this->driverConnection);
46
// call send to auto-setup the table
47
$this->connection->setup();
0 commit comments