Skip to content

Commit 16a9afd

Browse files
committed
Add language to code blocks in README
1 parent cbcab41 commit 16a9afd

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ brings nearly the same functionality for Mailpit as the mentioned modules did fo
1111

1212
## Installation
1313
Through composer, require the package:
14-
```
14+
```shell
1515
composer req koehnlein/codeception-email-mailpit --dev
1616
```
1717
Then turn it on in your Codeception suite yaml file
18-
```
18+
```yaml
1919
class_name: FunctionalTester
2020
modules:
2121
enabled:
@@ -31,30 +31,30 @@ The variable `deleteEmailsAfterScenario` can be set to true to ensure that all e
3131

3232
## Added Methods
3333
This Module adds a few public methods for the user, such as:
34-
```
34+
```php
3535
deleteAllEmails()
3636
```
3737
Deletes all emails in Mailpit
38-
```
38+
```php
3939
fetchEmails()
4040
```
4141
Fetches all email headers from Mialpit, sorts them by timestamp and assigns them to the current and unread inboxes
42-
```
42+
```php
4343
accessInboxFor($address)
4444
```
4545
Filters emails to only keep those that are received by the provided address
46-
```
46+
```php
4747
openNextUnreadEmail()
4848
```
4949
Pops the most recent unread email and assigns it as the email to conduct tests on
50-
```
50+
```php
5151
openNextAttachmentInOpenedEmail()
5252
```
5353
Pops the next attachment and assigns it as the attachment to conduct tests on
5454

5555
## Example Test
5656
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
5858
<?php
5959
$I = new FunctionalTester($scenario);
6060
$I->am('a member');
@@ -106,17 +106,17 @@ In case you want to switch from `codeception-email-mailhog` to this module, you
106106

107107
### Remove old MailHog module
108108
Depending on which fork of `codeception-email-mailhog` you have installed, you can uninstall it with
109-
```
109+
```shell
110110
composer remove oqq/codeception-email-mailhog --dev
111111
```
112112
or
113-
```
113+
```shell
114114
composer remove ericmartal/codeception-email-mailhog --dev
115115
```
116116
or maybe any other package name of the fork, you use.
117117

118118
### Add new Mailpit module instead
119-
```
119+
```shell
120120
composer req koehnlein/codeception-email-mailpit --dev
121121
```
122122

0 commit comments

Comments
 (0)