You are here

public function MigrateUserFloodTest::testMigration in Drupal 9

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

Tests the migration.

File

core/modules/user/tests/src/Kernel/Migrate/d7/MigrateUserFloodTest.php, line 26

Class

MigrateUserFloodTest
Migrates user flood control configuration.

Namespace

Drupal\Tests\user\Kernel\Migrate\d7

Code

public function testMigration() {
  $expected = [
    'uid_only' => TRUE,
    'ip_limit' => 30,
    'ip_window' => 7200,
    'user_limit' => 22,
    'user_window' => 86400,
    '_core' => [
      'default_config_hash' => 'UYfMzeP1S8jKm9PSvxf7nQNe8DsNS-3bc2WSNNXBQWs',
    ],
  ];
  $this
    ->assertSame($expected, $this
    ->config('user.flood')
    ->get());
}