From d1f7dbf4567cfc94e048205f93a5a1e2260e499c Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 19 Feb 2025 14:39:37 +1300 Subject: [PATCH] MNT Update behat test for sudo mode --- tests/behat/features/revoke.feature | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/behat/features/revoke.feature b/tests/behat/features/revoke.feature index 2a69054..e6c79f5 100644 --- a/tests/behat/features/revoke.feature +++ b/tests/behat/features/revoke.feature @@ -6,7 +6,8 @@ Feature: See other devices and revoke their access So that I can revoke their access Background: - Given a "group" "AUTHOR" has permissions "Access to 'Pages' section" + Given I add an extension "SilverStripe\BehatExtension\Extensions\ActivateSudoModeServiceExtension" to the "SilverStripe\Security\SudoMode\SudoModeService" class + And a "group" "AUTHOR" has permissions "Access to 'Pages' section" And I am logged in as a member of "AUTHOR" group # Create a mock login session And There is a login session for a second device