diff --git a/src/lib/Behat/BrowserContext/NavigationContext.php b/src/lib/Behat/BrowserContext/NavigationContext.php index 43c7f8f45e..075ffb6b12 100644 --- a/src/lib/Behat/BrowserContext/NavigationContext.php +++ b/src/lib/Behat/BrowserContext/NavigationContext.php @@ -141,6 +141,14 @@ public function iGoToUserNotifications() $this->upperMenu->openNotifications(); } + /** + * @Given I log out of back office + */ + public function iLogOutOfBackOffice() + { + $this->upperMenu->chooseFromUserDropdown('Logout'); + } + /** * @Given I'm on Content view Page for :path * @Given there exists Content view Page for :path diff --git a/src/lib/Security/Authentication/RedirectToDashboardAuthenticationSuccessHandler.php b/src/lib/Security/Authentication/RedirectToDashboardAuthenticationSuccessHandler.php index 89f35d155e..bce58fc182 100644 --- a/src/lib/Security/Authentication/RedirectToDashboardAuthenticationSuccessHandler.php +++ b/src/lib/Security/Authentication/RedirectToDashboardAuthenticationSuccessHandler.php @@ -32,8 +32,8 @@ class RedirectToDashboardAuthenticationSuccessHandler extends DefaultAuthenticat */ public function __construct( HttpUtils $httpUtils, - array $options = [], - array $siteAccessGroups = [], + array $options, + array $siteAccessGroups, string $defaultTargetPath ) { parent::__construct($httpUtils, $options);