diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-11-30 19:31:47 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-11-30 19:31:47 +0000 |
commit | 1fb5f62ba56bdbc6ff9f8a4045bccca8c5b9decd (patch) | |
tree | 2160f4d43f9da6385d200a04ee470c08b022c69e /modules/simpletest/drupal_web_test_case.php | |
parent | 96b74a1594456dc1879df03222656e0dec815ad6 (diff) | |
download | brdo-1fb5f62ba56bdbc6ff9f8a4045bccca8c5b9decd.tar.gz brdo-1fb5f62ba56bdbc6ff9f8a4045bccca8c5b9decd.tar.bz2 |
- Patch #651240 by fago, sun: allow modules to react to changes to an entity.
Diffstat (limited to 'modules/simpletest/drupal_web_test_case.php')
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 6 |
1 files changed, 4 insertions, 2 deletions
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; |