You are here

public function MigrateBlockedIPsTest::testBlockedIPs in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/ban/src/Tests/Migrate/d7/MigrateBlockedIPsTest.php \Drupal\ban\Tests\Migrate\d7\MigrateBlockedIPsTest::testBlockedIPs()

Tests migration of blocked IPs.

File

core/modules/ban/src/Tests/Migrate/d7/MigrateBlockedIPsTest.php, line 41
Contains \Drupal\ban\Tests\Migrate\d7\MigrateBlockedIPsTest.

Class

MigrateBlockedIPsTest
Migrate blocked IPs.

Namespace

Drupal\ban\Tests\Migrate\d7

Code

public function testBlockedIPs() {
  $this
    ->assertTrue(\Drupal::service('ban.ip_manager')
    ->isBanned('111.111.111.111'));
}