summaryrefslogtreecommitdiff
path: root/modules/system/system.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-18 17:05:35 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-18 17:05:35 +0000
commit36e33b75d5bc991a085755444d20b510b7ff9e1d (patch)
tree1c3ffc8212dbee0ff91b5e2deb18e657eb237ccd /modules/system/system.test
parenta155fa6f8527471576f3b417eab635a307fb853d (diff)
downloadbrdo-36e33b75d5bc991a085755444d20b510b7ff9e1d.tar.gz
brdo-36e33b75d5bc991a085755444d20b510b7ff9e1d.tar.bz2
- Patch #687716 by heyrocker: IP blocking test incorrectly checks for existence of blocked IP.
Diffstat (limited to 'modules/system/system.test')
-rw-r--r--modules/system/system.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.test b/modules/system/system.test
index 4e49ade61..9bdd3a5d6 100644
--- a/modules/system/system.test
+++ b/modules/system/system.test
@@ -345,7 +345,7 @@ class IPAddressBlockingTestCase extends DrupalWebTestCase {
$edit['ip'] = '192.168.1.1';
$this->drupalPost('admin/config/people/ip-blocking', $edit, t('Save'));
$ip = db_query("SELECT iid from {blocked_ips} WHERE ip = :ip", array(':ip' => $edit['ip']))->fetchField();
- $this->assertNotNull($ip, t('IP address found in database'));
+ $this->assertTrue($ip, t('IP address found in database.'));
$this->assertRaw(t('The IP address %ip has been blocked.', array('%ip' => $edit['ip'])), t('IP address was blocked.'));
// Try to block an IP address that's already blocked.