Skip to content
Snippets Groups Projects
Commit 207f6d7b authored by Jennifer Hodgdon's avatar Jennifer Hodgdon
Browse files

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

parent 8e2d696c
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment