summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2015-05-04 23:13:51 -0400
committerDavid Rothstein <drothstein@gmail.com>2015-05-04 23:13:51 -0400
commitebc5d852d5386e0aebbc4a816242dced46b3946e (patch)
treef1d26cf7244b78696d45ce4a2acb419ad9514a88 /modules
parentedf23f2041761ad55d3cd38057f757bc68acfa5a (diff)
downloadbrdo-ebc5d852d5386e0aebbc4a816242dced46b3946e.tar.gz
brdo-ebc5d852d5386e0aebbc4a816242dced46b3946e.tar.bz2
Issue #1003788 by stefan.r, Alan D., JimmyAx, Josh Waihi, john_brown, twistor, bellHead, bzrudi71, pwolanin, gaas, wiifm, robhardwick, gngn: PostgreSQL PDOException: Invalid text representation when attempting to load an entity with a string or non-scalar ID
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.test5
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'));