mirror of
https://github.com/owncloud/ocis
synced 2026-04-26 01:35:25 +02:00
fix issue/10059
This commit is contained in:
@@ -32,6 +32,7 @@ use TestHelpers\WebDavHelper;
|
||||
*/
|
||||
class OcmContext implements Context {
|
||||
private FeatureContext $featureContext;
|
||||
private NotificationContext $notificationContext;
|
||||
private string $invitationToken;
|
||||
|
||||
/**
|
||||
@@ -52,6 +53,18 @@ class OcmContext implements Context {
|
||||
$environment = $scope->getEnvironment();
|
||||
// Get all the contexts you need in this context from here
|
||||
$this->featureContext = $environment->getContext('FeatureContext');
|
||||
$this->notificationContext = $environment->getContext('NotificationContext');
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete all the inbucket emails
|
||||
*
|
||||
* @AfterScenario @email
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function clearInbucketMessages():void {
|
||||
$this->notificationContext->clearInbucketMessages();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user