You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then turn it on in your Codeception suite yaml file
18
-
```
18
+
```yaml
19
19
class_name: FunctionalTester
20
20
modules:
21
21
enabled:
@@ -31,30 +31,30 @@ The variable `deleteEmailsAfterScenario` can be set to true to ensure that all e
31
31
32
32
## Added Methods
33
33
This Module adds a few public methods for the user, such as:
34
-
```
34
+
```php
35
35
deleteAllEmails()
36
36
```
37
37
Deletes all emails in Mailpit
38
-
```
38
+
```php
39
39
fetchEmails()
40
40
```
41
41
Fetches all email headers from Mialpit, sorts them by timestamp and assigns them to the current and unread inboxes
42
-
```
42
+
```php
43
43
accessInboxFor($address)
44
44
```
45
45
Filters emails to only keep those that are received by the provided address
46
-
```
46
+
```php
47
47
openNextUnreadEmail()
48
48
```
49
49
Pops the most recent unread email and assigns it as the email to conduct tests on
50
-
```
50
+
```php
51
51
openNextAttachmentInOpenedEmail()
52
52
```
53
53
Pops the next attachment and assigns it as the attachment to conduct tests on
54
54
55
55
## Example Test
56
56
Here is a simple scenario where we test the content of an email. For a detailed list of all available test methods, please refer to the [Codeception Email Testing Framework][CodeceptionEmailTestingFramework].
57
-
```
57
+
```php
58
58
<?php
59
59
$I = new FunctionalTester($scenario);
60
60
$I->am('a member');
@@ -106,17 +106,17 @@ In case you want to switch from `codeception-email-mailhog` to this module, you
106
106
107
107
### Remove old MailHog module
108
108
Depending on which fork of `codeception-email-mailhog` you have installed, you can uninstall it with
0 commit comments