Skip to content
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

Merged
merged 1 commit into from
Jan 29, 2018
Merged

Improve assertions #25908

merged 1 commit into from
Jan 29, 2018

Conversation

carusogabriel
Copy link
Contributor

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.

@xabbuh xabbuh added this to the 2.8 milestone Jan 23, 2018
@fabpot
Copy link
Member

fabpot commented Jan 29, 2018

Thank you @carusogabriel.

@fabpot fabpot merged commit 4683f6d into symfony:2.8 Jan 29, 2018
fabpot added a commit that referenced this pull request Jan 29, 2018
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
@carusogabriel carusogabriel deleted the assertions-2.8 branch January 29, 2018 08:59
@@ -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']);
Copy link
Contributor

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants