summaryrefslogtreecommitdiff
path: root/modules/book/book.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/book/book.test')
-rw-r--r--modules/book/book.test5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/book/book.test b/modules/book/book.test
index 8290f6f17..1c8ac0c32 100644
--- a/modules/book/book.test
+++ b/modules/book/book.test
@@ -141,8 +141,7 @@ class BookTestCase extends DrupalWebTestCase {
// Check printer friendly version.
$this->drupalGet('book/export/html/' . $node->nid);
$this->assertText($node->title, t('Printer friendly title found.'));
- $node->body = str_replace('<!--break-->', '', $node->body);
- $this->assertRaw(check_markup($node->body, $node->format), t('Printer friendly body found.'));
+ $this->assertRaw(check_markup($node->body[0]['value'], $node->body[0]['format']), t('Printer friendly body found.'));
$number++;
}
@@ -174,7 +173,7 @@ class BookTestCase extends DrupalWebTestCase {
$edit = array();
$edit['title'] = $number . ' - SimpleTest test node ' . $this->randomName(10);
- $edit['body'] = 'SimpleTest test body ' . $this->randomName(32) . ' ' . $this->randomName(32);
+ $edit['body[0][value]'] = 'SimpleTest test body ' . $this->randomName(32) . ' ' . $this->randomName(32);
$edit['book[bid]'] = $book_nid;
if ($parent !== NULL) {