You are here

public function Maillog::setLastId in Maillog / Mail Developer 7

@BeforeScenario

File

./maillog.behat.inc, line 54
Behat subcontext for testing whether specific emails have been sent.

Class

Maillog
Behat subcontext for testing whether specific emails have been sent.

Code

public function setLastId() {
  if (module_exists('maillog')) {
    $this->lastId = (int) db_query('SELECT MAX(id) FROM {maillog}')
      ->fetchField();
  }
}