You are here

public static function BlockedIpsExpireTestCase::addIpWithoutExpiryTime in Blocked IPs Expire 7

Add an IP address without an expiry (simulate core without this module).

See also

system_ip_blocking_form_submit()

File

tests/blocked_ips_expire.base.test, line 84
Contains \BlockedIpsExpireTestCase.

Class

BlockedIpsExpireTestCase
An object containing test functions common to all tests for this module.

Code

public static function addIpWithoutExpiryTime($ip) {
  $result = db_insert('blocked_ips')
    ->fields(array(
    'ip' => $ip,
  ))
    ->execute();
  return $result;
}