You are here

public function MigrateBlockedIpsTest::testBlockedIps in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/ban/tests/src/Kernel/Migrate/d7/MigrateBlockedIpsTest.php \Drupal\Tests\ban\Kernel\Migrate\d7\MigrateBlockedIpsTest::testBlockedIps()
  2. 10 core/modules/ban/tests/src/Kernel/Migrate/d7/MigrateBlockedIpsTest.php \Drupal\Tests\ban\Kernel\Migrate\d7\MigrateBlockedIpsTest::testBlockedIps()

Tests migration of blocked IPs.

File

core/modules/ban/tests/src/Kernel/Migrate/d7/MigrateBlockedIpsTest.php, line 36

Class

MigrateBlockedIpsTest
Migrate blocked IPs.

Namespace

Drupal\Tests\ban\Kernel\Migrate\d7

Code

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