You are here

public function MigrateUserFloodTest::testMigration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Tests/Migrate/d7/MigrateUserFloodTest.php \Drupal\user\Tests\Migrate\d7\MigrateUserFloodTest::testMigration()

Tests the migration.

File

core/modules/user/src/Tests/Migrate/d7/MigrateUserFloodTest.php, line 31
Contains \Drupal\user\Tests\Migrate\d7\MigrateUserFloodTest.

Class

MigrateUserFloodTest
Migrates user flood control configuration.

Namespace

Drupal\user\Tests\Migrate\d7

Code

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());
}