File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -28,23 +28,17 @@ class DoctrineIntegrationTest extends TestCase
28
28
private $ driverConnection ;
29
29
/** @var Connection */
30
30
private $ connection ;
31
- /** @var string */
32
- private $ sqliteFile ;
33
31
34
32
protected function setUp (): void
35
33
{
36
- $ this ->sqliteFile = sys_get_temp_dir ().'/symfony.messenger.sqlite ' ;
37
- $ dsn = getenv ('MESSENGER_DOCTRINE_DSN ' ) ?: 'sqlite:/// ' .$ this ->sqliteFile ;
34
+ $ dsn = getenv ('MESSENGER_DOCTRINE_DSN ' ) ?: 'sqlite://:memory: ' ;
38
35
$ this ->driverConnection = DriverManager::getConnection (['url ' => $ dsn ]);
39
36
$ this ->connection = new Connection ([], $ this ->driverConnection );
40
37
}
41
38
42
39
protected function tearDown (): void
43
40
{
44
41
$ this ->driverConnection ->close ();
45
- if (file_exists ($ this ->sqliteFile )) {
46
- @unlink ($ this ->sqliteFile );
47
- }
48
42
}
49
43
50
44
public function testConnectionSendAndGet ()
You can’t perform that action at this time.
0 commit comments