function MigrateBlockedIpsTest::testBlockedIps
Same name in other branches
- 9 core/modules/ban/tests/src/Kernel/Migrate/d7/MigrateBlockedIpsTest.php \Drupal\Tests\ban\Kernel\Migrate\d7\MigrateBlockedIpsTest::testBlockedIps()
- 8.9.x core/modules/ban/tests/src/Kernel/Migrate/d7/MigrateBlockedIpsTest.php \Drupal\Tests\ban\Kernel\Migrate\d7\MigrateBlockedIpsTest::testBlockedIps()
- 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 35
Class
- MigrateBlockedIpsTest
- Migrate blocked IPs.
Namespace
Drupal\Tests\ban\Kernel\Migrate\d7Code
public function testBlockedIps() : void {
$this->startCollectingMessages();
$this->executeMigration('d7_blocked_ips');
$this->assertEmpty($this->migrateMessages);
$this->assertTrue(\Drupal::service('ban.ip_manager')->isBanned('111.111.111.111'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.