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

Make EnvironmentTest for Webspace more explicit #7437

Merged
merged 4 commits into from
Jun 19, 2024

Conversation

mamazu
Copy link
Contributor

@mamazu mamazu commented May 18, 2024

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets -
Related issues/PRs #7222 #7218
License MIT
Documentation PR -

What's in this PR?

Making the EnvironmentTest more explicit on what it does.

Why?

When fixing the tests for the Webspace configuration migration I noticed that the second parameter of the Url wasn't used in this test. It turns out that it is overriden by the environment configuration. However, the type of the environment config is set after the url is added so the environment property in the expected result is empty (which should not happen). Seeing that the type is an essential property of the environment and should be configured in the constructor (see #7222 for that) We should move the setter call (that is part of the object setup) infront of the addUrl call.

@mamazu mamazu force-pushed the better_environment_test branch 2 times, most recently from 729f25f to 3071338 Compare May 18, 2024 13:43
@mamazu mamazu changed the title Making tests more explicit Making EnvironmentTest more explicit May 18, 2024
@alexander-schranz alexander-schranz changed the base branch from 2.6 to 2.5 May 27, 2024 07:00
@alexander-schranz
Copy link
Member

@mamazu can you rebase this to 2.5?

@alexander-schranz alexander-schranz added the DX Affecting the end developer label May 27, 2024
@mamazu
Copy link
Contributor Author

mamazu commented May 27, 2024

Done

@mamazu
Copy link
Contributor Author

mamazu commented Jun 10, 2024

@alexander-schranz I think this is ready for merging now.

@mamazu mamazu changed the title Making EnvironmentTest more explicit [Webspace] Making EnvironmentTest more explicit Jun 15, 2024
@alexander-schranz alexander-schranz merged commit 4a2172e into sulu:2.5 Jun 19, 2024
7 of 8 checks passed
@alexander-schranz alexander-schranz changed the title [Webspace] Making EnvironmentTest more explicit Make EnvironmentTest for Webspace more explicit Jun 19, 2024
@mamazu mamazu deleted the better_environment_test branch June 19, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Affecting the end developer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants