public function MigrateUserConfigsTest::testUserSettings in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/user/src/Tests/Migrate/d6/MigrateUserConfigsTest.php \Drupal\user\Tests\Migrate\d6\MigrateUserConfigsTest::testUserSettings()
Tests migration of user variables to user.settings.yml.
File
- core/
modules/ user/ src/ Tests/ Migrate/ d6/ MigrateUserConfigsTest.php, line 56 - Contains \Drupal\user\Tests\Migrate\d6\MigrateUserConfigsTest.
Class
- MigrateUserConfigsTest
- Upgrade variables to user.*.yml.
Namespace
Drupal\user\Tests\Migrate\d6Code
public function testUserSettings() {
$config = $this
->config('user.settings');
$this
->assertIdentical(TRUE, $config
->get('notify.status_blocked'));
$this
->assertIdentical(FALSE, $config
->get('notify.status_activated'));
$this
->assertIdentical(FALSE, $config
->get('verify_mail'));
$this
->assertIdentical('admin_only', $config
->get('register'));
$this
->assertIdentical('Guest', $config
->get('anonymous'));
}