Revision db2d93dd
Added by Benjamin Luce over 9 years ago
drupal7/modules/system/system.test | ||
---|---|---|
1068 | 1068 |
); |
1069 | 1069 |
$node = $this->drupalCreateNode($edit); |
1070 | 1070 |
|
1071 |
// As node IDs must be integers, make sure requests for non-integer IDs |
|
1072 |
// return a page not found error. |
|
1073 |
$this->drupalGet('node/invalid'); |
|
1074 |
$this->assertResponse(404); |
|
1075 |
|
|
1071 | 1076 |
// Use a custom 404 page. |
1072 | 1077 |
$this->drupalPost('admin/config/system/site-information', array('site_404' => 'node/' . $node->nid), t('Save configuration')); |
1073 | 1078 |
|
Also available in: Unified diff
Update to 7.37