We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7befe47 commit e0f778fCopy full SHA for e0f778f
src/Codeception/Lib/Connector/Yii2.php
@@ -207,6 +207,15 @@ public function getEmails()
207
return $this->emails;
208
}
209
210
+ /**
211
+ * Deletes all stored emails.
212
+ * @internal
213
+ */
214
+ public function clearEmails()
215
+ {
216
+ $this->emails = [];
217
+ }
218
+
219
/**
220
* @internal
221
*/
src/Codeception/Module/Yii2.php
@@ -804,6 +804,15 @@ public function grabLastSentEmail()
804
return end($messages);
805
806
807
808
+ * Deletes all sent emails.
809
+ * @part email
810
811
+ public function deleteSentEmails()
812
813
+ $this->client->clearEmails();
814
815
816
817
818
0 commit comments