From 1fb5f62ba56bdbc6ff9f8a4045bccca8c5b9decd Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 30 Nov 2010 19:31:47 +0000 Subject: - Patch #651240 by fago, sun: allow modules to react to changes to an entity. --- modules/simpletest/drupal_web_test_case.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/simpletest/drupal_web_test_case.php') diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index e50adda62..514694160 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -799,12 +799,14 @@ class DrupalWebTestCase extends DrupalTestCase { * * @param title * A node title, usually generated by $this->randomName(). + * @param $reset + * (optional) Whether to reset the internal node_load() cache. * * @return * A node object matching $title. */ - function drupalGetNodeByTitle($title) { - $nodes = node_load_multiple(array(), array('title' => $title)); + function drupalGetNodeByTitle($title, $reset = FALSE) { + $nodes = node_load_multiple(array(), array('title' => $title), $reset); // Load the first node returned from the database. $returned_node = reset($nodes); return $returned_node; -- cgit v1.2.3