8000 Merge branch '6.4' into 7.1 · symfony/cache@2002110 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2002110

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: Update deprecations baseline [Mailer][MailJet] Fix parameters for TrackClicks and TrackOpens [Doctrine][Messenger] Oracle sequences are suffixed with `_seq` drop existing schema if tests create it explicitly synchronize line numbers in deprecations baseline [HttpClient] Fix class requirement message Add integration test for RememberMe with pg connection fix: DoctrineTokenProvider not oracle compatible
2 parents 331a8a0 + cf8b746 commit 2002110

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Tests/Adapter/DoctrineDbalAdapterTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ public function createCachePool(int $defaultLifetime = 0): CacheItemPoolInterfac
4949

5050
public function testConfigureSchemaDecoratedDbalDriver()
5151
{
52+
if (file_exists(self::$dbFile)) {
53+
@unlink(self::$dbFile);
54+
}
55+
5256
$connection = DriverManager::getConnection(['driver' => 'pdo_sqlite', 'path' => self::$dbFile], $this->getDbalConfig());
5357
if (!interface_exists(Middleware::class)) {
5458
$this->markTestSkipped('doctrine/dbal v2 does not support custom drivers using middleware');
@@ -74,6 +78,10 @@ public function testConfigureSchemaDecoratedDbalDriver()
7478

7579
public function testConfigureSchema()
7680
{
81+
if (file_exists(self::$dbFile)) {
82+
@unlink(self::$dbFile);
83+
}
84+
7785
$connection = DriverManager::getConnection(['driver' => 'pdo_sqlite', 'path' => self::$dbFile], $this->getDbalConfig());
7886
$schema = new Schema();
< B793 /code>
7987

@@ -84,6 +92,10 @@ public function testConfigureSchema()
8492

8593
public function testConfigureSchemaDifferentDbalConnection()
8694
{
95+
if (file_exists(self::$dbFile)) {
96+
@unlink(self::$dbFile);
97+
}
98+
8799
$otherConnection = $this->createConnectionMock();
88100
$schema = new Schema();
89101

@@ -94,6 +106,10 @@ public function testConfigureSchemaDifferentDbalConnection()
94106

95107
public function testConfigureSchemaTableExists()
96108
{
109+
if (file_exists(self::$dbFile)) {
110+
@unlink(self::$dbFile);
111+
}
112+
97113
$connection = DriverManager::getConnection(['driver' => 'pdo_sqlite', 'path' => self::$dbFile], $this->getDbalConfig());
98114
$schema = new Schema();
99115
$schema->createTable('cache_items');

0 commit comments

Comments
 (0)
0