Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
207f6d7b
Commit
207f6d7b
authored
Oct 01, 2012
by
Jennifer Hodgdon
Browse files
Issue
#1798960
by Lars Toomre: Remove t() from test assert in Ban module
parent
8e2d696c
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/ban/lib/Drupal/ban/Tests/IpAddressBlockingTest.php
View file @
207f6d7b
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment