MigrateUserFloodTest.php in Zircon Profile 8
File
core/modules/user/src/Tests/Migrate/d7/MigrateUserFloodTest.php
View source
<?php
namespace Drupal\user\Tests\Migrate\d7;
use Drupal\migrate_drupal\Tests\d7\MigrateDrupal7TestBase;
class MigrateUserFloodTest extends MigrateDrupal7TestBase {
protected function setUp() {
parent::setUp();
$this
->installConfig([
'user',
]);
$this
->executeMigration('d7_user_flood');
}
public function testMigration() {
$expected = [
'uid_only' => TRUE,
'ip_limit' => 30,
'ip_window' => 7200,
'user_limit' => 22,
'user_window' => 86400,
];
$this
->assertIdentical($expected, $this
->config('user.flood')
->get());
}
}