src/DrupalExtension/Context/EmailContext.php
public function assertEmailSentWithProperties(TableNode $table) {
    $last_mail = $this->getLastEmail();
    foreach ($table->getRowsHash() as $name => $value) {
      Assert::keyExists($last_mail, $name);
      Assert::eq($last_mail[$name], $value);
    }
  }
public function assertEmailSentWithProperties(TableNode $table) {
    $last_mail = $this->getLastEmail();
    foreach ($table->getRowsHash() as $name => $value) {
      Assert::keyExists($last_mail, $name);
      Assert::eq($last_mail[$name], $value);
    }
  }
public function assertEmailSentWithProperties ( TableNode $ table ) { $ last_mail = $ this -> getLastEmail ( ) ; foreach ( $ table -> getRowsHash ( ) as $ name => $ value ) { Assert :: keyExists ( $ last_mail , $ name ) ; Assert :: eq ( $ last_mail [ $ name ] , $ value ) ; } }
Assert that the email that has been sent has the given properties.

@Then an email with the following properties should have been sent:
Assert that the email that has been sent has the given properties .