add formerly removed RevaContext
This commit is contained in:
2 files changed
+41
No files matched your search
@@ -13,6 +13,7 @@ default:
|
|||||||
ldapGroupsOU: TestGroups
|
ldapGroupsOU: TestGroups
|
||||||
ldapInitialUserFilePath: /../../config/ldap-users.ldif
|
ldapInitialUserFilePath: /../../config/ldap-users.ldif
|
||||||
contexts:
|
contexts:
|
||||||
|
- RevaContext:
|
||||||
- OccContext:
|
- OccContext:
|
||||||
- FeatureContext: &common_feature_context_params
|
- FeatureContext: &common_feature_context_params
|
||||||
baseUrl: http://localhost:8080
|
baseUrl: http://localhost:8080
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Behat\Behat\Context\Context;
|
||||||
|
use Behat\Behat\Hook\Scope\BeforeScenarioScope;
|
||||||
|
use TestHelpers\AppConfigHelper;
|
||||||
|
use TestHelpers\SetupHelper;
|
||||||
|
|
||||||
|
require_once 'bootstrap.php';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Context for Reva specific steps
|
||||||
|
*/
|
||||||
|
class RevaContext implements Context {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var FeatureContext
|
||||||
|
*/
|
||||||
|
private $featureContext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @BeforeScenario
|
||||||
|
*
|
||||||
|
* @param BeforeScenarioScope $scope
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
public function setUpScenario(BeforeScenarioScope $scope) {
|
||||||
|
// Get the environment
|
||||||
|
$environment = $scope->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()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user