Skip to content

Commit

Permalink
Merge pull request #53 from DBX12/delete-emails
Browse files Browse the repository at this point in the history
Add method to delete sent emails during tests
  • Loading branch information
SamMousa authored Oct 15, 2021
2 parents 7befe47 + 79a299c commit aacb442
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Codeception/Lib/Connector/Yii2.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,15 @@ public function getEmails()
return $this->emails;
}

/**
* Deletes all stored emails.
* @internal
*/
public function clearEmails()
{
$this->emails = [];
}

/**
* @internal
*/
Expand Down

0 comments on commit aacb442

Please sign in to comment.