fix issue/10059

This commit is contained in:
Viktor Scharf
2024-09-16 14:51:36 +02:00
parent 052644a1a2
commit 0c4242d4bb
4 changed files with 42 additions and 4 deletions

View File

@@ -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();
}
/**