You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/Cache/Subscription/PurgeSubscriptionProviderTest.php
+57-57Lines changed: 57 additions & 57 deletions
Original file line number
Diff line number
Diff line change
@@ -360,63 +360,6 @@ public function testWithMissingRouteParams(
360
360
[...$purgeSubscriptionProvider->provide()];
361
361
}
362
362
363
-
#[TestWith([
364
-
'if' => 'invalidObj.getMethod()',
365
-
'expectedMessage' => 'Invalid "if" expression provided for route "foo": "Variable "invalidObj" is not valid around position 1 for expression `invalidObj.getMethod()`."',
366
-
])]
367
-
#[TestWith([
368
-
'if' => 'entity !== null',
369
-
'expectedMessage' => 'Invalid "if" expression provided for route "foo": "Variable "entity" is not valid around position 1 for expression `entity !== null`."',
370
-
])]
371
-
#[TestWith([
372
-
'if' => 'some_function(obj)',
373
-
'expectedMessage' => 'Invalid "if" expression provided for route "foo": "The function "some_function" does not exist around position 1 for expression `some_function(obj)`."',
374
-
])]
375
-
#[TestWith([
376
-
'if' => 'valid_function(author)',
377
-
'expectedMessage' => 'Invalid "if" expression provided for route "foo": "Variable "author" is not valid around position 16 for expression `valid_function(author)`."',
'expectedMessage' => 'Invalid "if" expression provided for route "foo": "Variable "invalidObj" is not valid around position 1 for expression `invalidObj.getMethod()`."',
492
+
])]
493
+
#[TestWith([
494
+
'if' => 'entity !== null',
495
+
'expectedMessage' => 'Invalid "if" expression provided for route "foo": "Variable "entity" is not valid around position 1 for expression `entity !== null`."',
496
+
])]
497
+
#[TestWith([
498
+
'if' => 'some_function(obj)',
499
+
'expectedMessage' => 'Invalid "if" expression provided for route "foo": "The function "some_function" does not exist around position 1 for expression `some_function(obj)`."',
500
+
])]
501
+
#[TestWith([
502
+
'if' => 'valid_function(author)',
503
+
'expectedMessage' => 'Invalid "if" expression provided for route "foo": "Variable "author" is not valid around position 16 for expression `valid_function(author)`."',
$this->expectExceptionMessage('You cannot use the "ForGroups" attribute because the Symfony Serializer component is not installed. Try running "composer require symfony/serializer".');
0 commit comments