Skip to content

Made some SecurityBundle tests case-insensitive to prepare for future Symfony versions #23852

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

Closed
wants to merge 2 commits into from

Conversation

javiereguiluz
Copy link
Member

Q A
Branch? 3.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

This is what @nicolas-grekas told me to do to unlock #23797.

@chalasr chalasr added this to the 3.4 milestone Aug 11, 2017
// transform all $configs values to lower case so tests are case-insensitive and
// they also work in newer Symfony versions where service IDs are case-sensitive
array_walk_recursive($configs, function (&$value) {
$value = is_string($value) ? strtolower($value) : $value;
Copy link
Member

Choose a reason for hiding this comment

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

i wouldn't change all values, only $configs[0][2] needs to be lowercased.

@chalasr
Copy link
Member

chalasr commented Aug 14, 2017

Thanks Javier.

chalasr pushed a commit that referenced this pull request Aug 14, 2017
…re for future Symfony versions (javiereguiluz)

This PR was squashed before being merged into the 3.4 branch (closes #23852).

Discussion
----------

Made some SecurityBundle tests case-insensitive to prepare for future Symfony versions

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This is what @nicolas-grekas [told me to do](#23797 (comment)) to unlock #23797.

Commits
-------

9b7750a Made some SecurityBundle tests case-insensitive to prepare for future Symfony versions
@chalasr chalasr closed this Aug 14, 2017
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.

4 participants