| @@ 318-325 (lines=8) @@ | ||
| 315 | * @Then no (e)mail(s) has/have been sent |
|
| 316 | * @Then no (e)mail(s) has/have been sent to :to |
|
| 317 | */ |
|
| 318 | public function noMailHasBeenSent($to = NULL) { |
|
| 319 | $matches = []; |
|
| 320 | if (!is_null($to)) { |
|
| 321 | $matches = ['to' => $to]; |
|
| 322 | } |
|
| 323 | $actualMail = $this->getMail($matches); |
|
| 324 | $this->compareMail($actualMail, []); |
|
| 325 | } |
|
| 326 | ||
| 327 | /** |
|
| 328 | * Check mail sent since the last step that checked mail. |
|
| @@ 333-340 (lines=8) @@ | ||
| 330 | * @Then no new (e)mail(s) is/are sent |
|
| 331 | * @Then no new (e)mail(s) is/are sent to :to |
|
| 332 | */ |
|
| 333 | public function noNewMailIsSent($to = NULL) { |
|
| 334 | $matches = []; |
|
| 335 | if (!is_null($to)) { |
|
| 336 | $matches = ['to' => $to]; |
|
| 337 | } |
|
| 338 | $actualMail = $this->getMail($matches, TRUE); |
|
| 339 | $this->compareMail($actualMail, []); |
|
| 340 | } |
|
| 341 | ||
| 342 | /** |
|
| 343 | * @When I follow the link to :urlFragment from the (e)mail |
|