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

IBX-3451: [Behat] Removed depending on APP_ENV when loading Context services #324

Merged
merged 2 commits into from Aug 18, 2022

Conversation

mnocon
Copy link
Member

@mnocon mnocon commented Jul 26, 2022

JIRA: https://issues.ibexa.co/browse/IBX-3451 (Customer request)

Backport of a change introduced in ibexa/core#92 (ibexa/core@073a5cc) to v3.3 because of the ticket mentioned above.
Relying on a parameter (prepended by ibexa/behat package) is better than relying on hardcoded Symfony env (and does not require adding optional dependencies to bypass it).

I've also added small tests, because it's a Customer Request.

Related PR: ezsystems/ezplatform-content-forms#62

@mnocon mnocon changed the title [Behat] Removed depending on APP_ENV when loading Context services IBX-3451: [Behat] Removed depending on APP_ENV when loading Context services Jul 28, 2022
@sonarcloud
Copy link

sonarcloud bot commented Jul 28, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@konradoboza konradoboza requested a review from a team August 11, 2022 06:02
@@ -91,8 +91,7 @@ public function load(array $configs, ContainerBuilder $container)

$configuration = $this->getConfiguration($configs, $container);

$environment = $container->getParameter('kernel.environment');
if (in_array($environment, ['behat', 'test'])) {
if ($this->shouldLoadTestServices($container)) {
Copy link
Member

Choose a reason for hiding this comment

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

Now that I see it, I think it should be a separate bundle, not a part of Core ;)

@bogusez bogusez self-assigned this Aug 17, 2022
@bogusez bogusez added the Ready for MERGE To be set by author or maintainer label Aug 18, 2022
@adamwojs adamwojs merged commit 40f7d8b into 1.3 Aug 18, 2022
@adamwojs adamwojs deleted the fix-context-loading branch August 18, 2022 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA approved Ready for MERGE To be set by author or maintainer
9 participants