diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/system.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/system/system.test b/modules/system/system.test index 3e26bae8c..d4c98f0a7 100644 --- a/modules/system/system.test +++ b/modules/system/system.test @@ -1068,6 +1068,11 @@ class PageNotFoundTestCase extends DrupalWebTestCase { ); $node = $this->drupalCreateNode($edit); + // As node IDs must be integers, make sure requests for non-integer IDs + // return a page not found error. + $this->drupalGet('node/invalid'); + $this->assertResponse(404); + // Use a custom 404 page. $this->drupalPost('admin/config/system/site-information', array('site_404' => 'node/' . $node->nid), t('Save configuration')); |