Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31cf4f8

Browse files
[SecurityBundle] Fix failing tests
1 parent 97b6064 commit 31cf4f8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Symfony/Bundle/SecurityBundle/Tests/CacheWarmer/ExpressionCacheWarmerTest.php

+5-3
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)