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.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/book/book.test b/modules/book/book.test
index c797b7bad..6ac63f060 100644
--- a/modules/book/book.test
+++ b/modules/book/book.test
@@ -237,6 +237,10 @@ class BookTestCase extends DrupalWebTestCase {
$this->drupalGet('book/export/foobar/' . $this->book->nid);
$this->assertResponse('404', t('Unsupported export format returned "not found".'));
+ // Make sure we get a 404 on a not existing book node.
+ $this->drupalGet('book/export/html/123');
+ $this->assertResponse('404', t('Not existing book node returned "not found".'));
+
// Make sure an anonymous user cannot view printer-friendly version.
$this->drupalLogout();