Skip to content

Commit

Permalink
Merge branch '6.4' into 7.0
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
xabbuh committed Feb 9, 2024
2 parents 382bfc2 + a8f783d commit 0deeed2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Tests/CacheWarmer/ExpressionCacheWarmerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ public function testWarmUp()
$expressionLang = $this->createMock(ExpressionLanguage::class);
$expressionLang->expects($this->exactly(2))
->method('parse')
->willReturnCallback(function (...$args) use (&$series) {
$expectedArgs = array_shift($series);
$this->assertSame($expectedArgs, $args);
->willReturnCallback(function (Expression|string $expression, array $names) use (&$series) {
[$expectedExpression, $expectedNames] = array_shift($series);

$this->assertSame($expectedExpression, $expression);
$this->assertSame($expectedNames, $names);

return $this->createMock(ParsedExpression::class);
})
Expand Down

0 comments on commit 0deeed2

Please sign in to comment.