mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/16512] Adjust test to use better assertions
PHPBB3-16512
This commit is contained in:
@@ -44,8 +44,8 @@ class phpbb_functions_user_whois_test extends phpbb_test_case
|
|||||||
public function test_ip_whois($ip)
|
public function test_ip_whois($ip)
|
||||||
{
|
{
|
||||||
$ip_whois = user_ipwhois($ip);
|
$ip_whois = user_ipwhois($ip);
|
||||||
$this->assertNotContains('Query terms are ambiguous', $ip_whois);
|
$this->assertStringNotContainsString('Query terms are ambiguous', $ip_whois);
|
||||||
$this->assertNotContains('no entries found', $ip_whois);
|
$this->assertStringNotContainsString('no entries found', $ip_whois);
|
||||||
$this->assertNotContains('ERROR', $ip_whois);
|
$this->assertStringNotContainsString('ERROR', $ip_whois);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user