diff options
Diffstat (limited to 'modules/book/book.test')
-rw-r--r-- | modules/book/book.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/book/book.test b/modules/book/book.test index 872cbc562..8290f6f17 100644 --- a/modules/book/book.test +++ b/modules/book/book.test @@ -95,6 +95,8 @@ class BookTestCase extends DrupalWebTestCase { * The nodes that should be displayed in the breadcrumb. */ function checkBookNode($node, $nodes, $previous = FALSE, $up = FALSE, $next = FALSE, array $breadcrumb) { + // $number does not use drupal_static as it should not be reset + // since it uniquely identifies each call to checkBookNode(). static $number = 0; $this->drupalGet('node/' . $node->nid); @@ -166,6 +168,8 @@ class BookTestCase extends DrupalWebTestCase { * @param integer $parent Parent book reference id. */ function createBookNode($book_nid, $parent = NULL) { + // $number does not use drupal_static as it should not be reset + // since it uniquely identifies each call to createBookNode(). static $number = 0; // Used to ensure that when sorted nodes stay in same order. $edit = array(); |