diff --git a/core/modules/block/block.test b/core/modules/block/block.test index 4af6240..497150b 100644 --- a/core/modules/block/block.test +++ b/core/modules/block/block.test @@ -844,3 +844,30 @@ class BlockHiddenRegionTestCase extends DrupalWebTestCase { $this->assertText('Search', t('Block was displayed on the front page.')); } } + +/** + * Tests personalized block settings for user accounts. + */ +class BlockUserAccountSettingsTestCase extends DrupalWebTestCase { + public static function getInfo() { + return array( + 'name' => 'Personalized block settings', + 'description' => 'Tests the block settings in user accounts.', + 'group' => 'Block', + ); + } + + public function setUp() { + parent::setUp(array('block', 'field_ui')); + $admin_user = $this->drupalCreateUser(array('administer users')); + $this->drupalLogin($admin_user); + } + + /** + * Tests that the personalized block is shown. + */ + function testAccountSettingsPage() { + $this->drupalGet('admin/config/people/accounts/fields'); + $this->assertText(t('Personalize blocks'), 'Personalized block is present.'); + } +}