| @@ 272-279 (lines=8) @@ | ||
| 269 | * @Then no (e)mail(s) has/have been sent |
|
| 270 | * @Then no (e)mail(s) has/have been sent to :to |
|
| 271 | */ |
|
| 272 | public function noMailHasBeenSent($to = NULL) { |
|
| 273 | $matches = []; |
|
| 274 | if (!is_null($to)) { |
|
| 275 | $matches = ['to' => $to]; |
|
| 276 | } |
|
| 277 | $actualMail = $this->getMail($matches); |
|
| 278 | $this->compareMail($actualMail, []); |
|
| 279 | } |
|
| 280 | ||
| 281 | /** |
|
| 282 | * Check mail sent since the last step that checked mail. |
|
| @@ 287-294 (lines=8) @@ | ||
| 284 | * @Then no new (e)mail(s) is/are sent |
|
| 285 | * @Then no new (e)mail(s) is/are sent to :to |
|
| 286 | */ |
|
| 287 | public function noNewMailIsSent($to = NULL) { |
|
| 288 | $matches = []; |
|
| 289 | if (!is_null($to)) { |
|
| 290 | $matches = ['to' => $to]; |
|
| 291 | } |
|
| 292 | $actualMail = $this->getMail($matches, TRUE); |
|
| 293 | $this->compareMail($actualMail, []); |
|
| 294 | } |
|
| 295 | ||
| 296 | /** |
|
| 297 | * @When I follow the link to :urlFragment from the (e)mail |
|