Skip to content
Snippets Groups Projects
Commit 36e33b75 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent a155fa6f
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment