From 72cb487b75095033f0f8d917890769ae67b790c6 Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Mon, 18 Oct 2021 15:59:35 +0200 Subject: [PATCH] add formerly removed RevaContext --- tests/acceptance/config/behat.yml | 1 + .../features/bootstrap/RevaContext.php | 40 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 tests/acceptance/features/bootstrap/RevaContext.php diff --git a/tests/acceptance/config/behat.yml b/tests/acceptance/config/behat.yml index d036656b429..6455830408e 100644 --- a/tests/acceptance/config/behat.yml +++ b/tests/acceptance/config/behat.yml @@ -13,6 +13,7 @@ default: ldapGroupsOU: TestGroups ldapInitialUserFilePath: /../../config/ldap-users.ldif contexts: + - RevaContext: - OccContext: - FeatureContext: &common_feature_context_params baseUrl: http://localhost:8080 diff --git a/tests/acceptance/features/bootstrap/RevaContext.php b/tests/acceptance/features/bootstrap/RevaContext.php new file mode 100644 index 00000000000..2a412220297 --- /dev/null +++ b/tests/acceptance/features/bootstrap/RevaContext.php @@ -0,0 +1,40 @@ +getEnvironment(); + // Get all the contexts you need in this context + $this->featureContext = $environment->getContext('FeatureContext'); + SetupHelper::init( + $this->featureContext->getAdminUsername(), + $this->featureContext->getAdminPassword(), + $this->featureContext->getBaseUrl(), + $this->featureContext->getOcPath() + ); + } +}