-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve assertions #25908
Improve assertions #25908
Conversation
Thank you @carusogabriel. |
This PR was merged into the 2.8 branch. Discussion ---------- Improve assertions | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Following #25420 in `2.8` branch. Commits ------- 4683f6d Improve assertions
@@ -84,9 +84,9 @@ public function testCsrfAliases() | |||
$processor = new Processor(); | |||
$configuration = new MainConfiguration(array(), array()); | |||
$processedConfig = $processor->processConfiguration($configuration, array($config)); | |||
$this->assertTrue(isset($processedConfig['firewalls']['stub']['logout']['csrf_token_generator'])); | |||
$this->assertArrayHasKey('csrf_token_generator', $processedConfig['firewalls']['stub']['logout']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change is not better as let;
$processedConfig['firewalls']['stub']['logout']['csrf_token_generator'] = null
then in the old situation the test would fail, in the new one it passes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SpacePossum PR?
Following #25420 in
2.8
branch.