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

8.0.x
Jennifer Hodgdon 2012-10-01 13:04:37 -07:00
parent 8e2d696c95
commit 207f6d7b29
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class IpAddressBlockingTest extends WebTestBase {
$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.