[ExpressionLanguage] Fix test case
This commit is contained in:
parent
d5f7460a96
commit
45411891f2
@ -48,8 +48,10 @@ class ExpressionLanguageTest extends TestCase
|
||||
->expects($this->exactly(1))
|
||||
->method('set')
|
||||
->with($this->isInstanceOf(ParsedExpression::class))
|
||||
->willReturnCallback(function ($parsedExpression) use (&$savedParsedExpression) {
|
||||
->willReturnCallback(function ($parsedExpression) use (&$savedParsedExpression, $cacheItemMock) {
|
||||
$savedParsedExpression = $parsedExpression;
|
||||
|
||||
return $cacheItemMock;
|
||||
})
|
||||
;
|
||||
|
||||
@ -57,6 +59,7 @@ class ExpressionLanguageTest extends TestCase
|
||||
->expects($this->exactly(1))
|
||||
->method('save')
|
||||
->with($cacheItemMock)
|
||||
->willReturn(true)
|
||||
;
|
||||
|
||||
$parsedExpression = $expressionLanguage->parse('1 + 1', []);
|
||||
|
Reference in New Issue
Block a user