mirror of
https://github.com/owncloud/ocis
synced 2026-04-25 17:25:21 +02:00
adding test for disabling mail and in-app notifications
This commit is contained in:
@@ -555,6 +555,22 @@ class NotificationContext implements Context {
|
||||
$this->assertEmailContains($user, $expectedEmailBodyContent);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then user :user should have :count emails
|
||||
*
|
||||
* @param string $user
|
||||
* @param int $count
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function userShouldHaveEmail(string $user, int $count): void {
|
||||
$address = $this->featureContext->getEmailAddressForUser($user);
|
||||
$this->featureContext->pushEmailRecipientAsMailBox($address);
|
||||
$mailBox = EmailHelper::getMailBoxFromEmail($address);
|
||||
$mailboxResponse = EmailHelper::getMailboxInformation($mailBox, $this->featureContext->getStepLineRef());
|
||||
Assert::assertCount($count, $mailboxResponse);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then user :user should have received the following email from user :sender ignoring whitespaces
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user