Commit 36e33b75 authored by Dries's avatar Dries
Browse files

- Patch #687716 by heyrocker: IP blocking test incorrectly checks for existence of blocked IP.

parent a155fa6f
......@@ -345,7 +345,7 @@ class IPAddressBlockingTestCase extends DrupalWebTestCase {
$edit['ip'] = '';
$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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment