Skip to content

Commit 0deeed2

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: fix test fix test [SecurityBundle] Fix failing tests fix tests [DependencyInjection] fix unable to make lazy service from readonly class [Dotenv] Specify envKey while loading variables with the dotenv:dump command [Mailer][Postmark][Webhook] Accept different date formats
2 parents 382bfc2 + a8f783d commit 0deeed2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Tests/CacheWarmer/ExpressionCacheWarmerTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ public function testWarmUp()
3131
$expressionLang = $this->createMock(ExpressionLanguage::class);
3232
$expressionLang->expects($this->exactly(2))
3333
->method('parse')
34-
->willReturnCallback(function (...$args) use (&$series) {
35-
$expectedArgs = array_shift($series);
36-
$this->assertSame($expectedArgs, $args);
34+
->willReturnCallback(function (Expression|string $expression, array $names) use (&$series) {
35+
[$expectedExpression, $expectedNames] = array_shift($series);
36+
37+
$this->assertSame($expectedExpression, $expression);
38+
$this->assertSame($expectedNames, $names);
3739

3840
return $this->createMock(ParsedExpression::class);
3941
})

0 commit comments

Comments
 (0)