Skip to content

Commit aacb442

Browse files
authored
Merge pull request #53 from DBX12/delete-emails
Add method to delete sent emails during tests
2 parents 7befe47 + 79a299c commit aacb442

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Codeception/Lib/Connector/Yii2.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,15 @@ public function getEmails()
207207
return $this->emails;
208208
}
209209

210+
/**
211+
* Deletes all stored emails.
212+
* @internal
213+
*/
214+
public function clearEmails()
215+
{
216+
$this->emails = [];
217+
}
218+
210219
/**
211220
* @internal
212221
*/

0 commit comments

Comments
 (0)