What problem does this solve? Why is it important? What's the context?
Acquia environment detector is being used to style toolbar based on the environment for easy detection. However it is not identifying stage environment properly. This PR fixes that issue.
Proposed changes
Changes isAhStageEnv() function to return TRUE if getAhEnv() return stage in staging environment.
Testing steps
Goto ACE stage environment.
Execute Acquia\DrupalEnvironmentDetector\AcquiaDrupalEnvironmentDetector:: isAhStageEnv(). It will return FALSE but expected is TRUE
Print Acquia\DrupalEnvironmentDetector\AcquiaDrupalEnvironmentDetector::getAhEnv() and it should return stage.
Fixes #
https://github.com/acquia/drupal-environment-detector/issues/11
Motivation
What problem does this solve? Why is it important? What's the context?
Acquia environment detector is being used to style toolbar based on the environment for easy detection. However it is not identifying
stage
environment properly. This PR fixes that issue.Proposed changes
Changes isAhStageEnv() function to return
TRUE
if getAhEnv() returnstage
in staging environment.Testing steps
Acquia\DrupalEnvironmentDetector\AcquiaDrupalEnvironmentDetector:: isAhStageEnv()
. It will returnFALSE
but expected isTRUE
Acquia\DrupalEnvironmentDetector\AcquiaDrupalEnvironmentDetector::getAhEnv()
and it should returnstage
.