File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
build/integration/features/bootstrap Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -827,6 +827,9 @@ public function getArrayOfSubadminsResponded($resp) {
827827 * @param string $app
828828 */
829829 public function appEnabledStateWillBeRestoredOnceTheScenarioFinishes ($ app ) {
830+ $ previousUser = $ this ->currentUser ;
831+ $ this ->currentUser = 'admin ' ;
832+
830833 if (in_array ($ app , $ this ->getAppsWithFilter ('enabled ' ))) {
831834 $ this ->appsToEnableAfterScenario [] = $ app ;
832835 } elseif (in_array ($ app , $ this ->getAppsWithFilter ('disabled ' ))) {
@@ -835,6 +838,8 @@ public function appEnabledStateWillBeRestoredOnceTheScenarioFinishes($app) {
835838
836839 // Apps that were not installed before the scenario will not be
837840 // disabled nor uninstalled after the scenario.
841+
842+ $ this ->currentUser = $ previousUser ;
838843 }
839844
840845 private function getAppsWithFilter ($ filter ) {
You can’t perform that action at this time.
0 commit comments