Commit 207f6d7b authored by jhodgdon's avatar jhodgdon

Issue #1798960 by Lars Toomre: Remove t() from test assert in Ban module

parent 8e2d696c
......@@ -40,7 +40,7 @@ function testIPAddressValidation() {
$edit['ip'] = '192.168.1.1';
$this->drupalPost('admin/config/people/ban', $edit, t('Add'));
$ip = db_query("SELECT iid from {ban_ip} WHERE ip = :ip", array(':ip' => $edit['ip']))->fetchField();
$this->assertTrue($ip, t('IP address found in database.'));
$this->assertTrue($ip, 'IP address found in database.');
$this->assertRaw(t('The IP address %ip has been banned.', array('%ip' => $edit['ip'])), 'IP address was banned.');
// 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