mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-15 00:30:21 -06:00
Merge pull request #10125 from owncloud/fixEmailTest
[test-only]fix email test
This commit is contained in:
@@ -32,7 +32,6 @@ use TestHelpers\WebDavHelper;
|
||||
*/
|
||||
class OcmContext implements Context {
|
||||
private FeatureContext $featureContext;
|
||||
private NotificationContext $notificationContext;
|
||||
private string $invitationToken;
|
||||
|
||||
/**
|
||||
@@ -53,18 +52,6 @@ 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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -136,9 +136,11 @@ Feature: create invitation
|
||||
|
||||
@email @issue-10059
|
||||
Scenario: federated user gets an email notification if their email was specified when creating the federation share invitation
|
||||
Given using server "LOCAL"
|
||||
When "Alice" has created the federation share invitation with email "brian@example.com" and description "a share invitation from Alice"
|
||||
And user "Brian" should have received the following email from user "Alice" ignoring whitespaces
|
||||
Given using server "REMOTE"
|
||||
And user "David" has been created with default attributes and without skeleton files
|
||||
And using server "LOCAL"
|
||||
When "Alice" has created the federation share invitation with email "david@example.com" and description "a share invitation from Alice"
|
||||
And user "David" should have received the following email from user "Alice" ignoring whitespaces
|
||||
"""
|
||||
Hi,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user