8000 [Lock] fix transient test · symfony/symfony@a4af465 · GitHub
[go: up one dir, main page]

Skip to content

Commit a4af465

Browse files
[Lock] fix transient test
1 parent df05836 commit a4af465

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Lock/Tests/Store/DoctrineDbalStoreTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function providePlatforms()
145145
public function testTableCreationInTransactionNotSupported()
146146
{
147147
$conn = $this->createMock(Connection::class);
148-
$conn->expects($this->exactly(2))
148+
$conn->expects($this->atLeast(2))
149149
->method('executeStatement')
150150
->withConsecutive(
151151
[$this->stringContains('INSERT INTO')],
@@ -168,7 +168,7 @@ public function testTableCreationInTransactionNotSupported()
168168
$platform->method('getCreateTableSQL')
169169
->willReturn(['create sql stmt']);
170170

171-
$conn->expects($this->exactly(2))
171+
$conn->expects($this->atLeast(2))
172172
->method('getDatabasePlatform');
173173

174174
$store = new DoctrineDbalStore($conn);
@@ -181,7 +181,7 @@ public function testTableCreationInTransactionNotSupported()
181181
public function testCreatesTableOutsideTransaction()
182182
{
183183
$conn = $this->createMock(Connection::class);
184-
$conn->expects($this->exactly(3))
184+
$conn->expects($this->atLeast(3))
185185
->method('executeStatement')
186186
->withConsecutive(
187187
[$this->stringContains('INSERT INTO')],

0 commit comments

Comments
 (0)
0