You are here

public function MailhandlerTestCase::drupalGetNodeByTitle in Mailhandler 6.2

Get a node from the database based on its title.

Parameters

title: A node title, usually generated by $this->randomName().

Return value

A node object matching $title.

Overrides DrupalWebTestCase::drupalGetNodeByTitle

1 call to MailhandlerTestCase::drupalGetNodeByTitle()
MailhandlerTestCase::testMailhandlerImport in tests/mailhandler.test

File

tests/mailhandler.test, line 70
Tests for Mailhandler modules.

Class

MailhandlerTestCase
@file Tests for Mailhandler modules.

Code

public function drupalGetNodeByTitle($title) {
  return node_load(array(
    'title' => $title,
  ));
}