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