diff --git a/core/profiles/minimal/config/plugin.core.block.stark.admin.yml b/core/profiles/minimal/config/plugin.core.block.stark.admin.yml new file mode 100644 index 0000000..5f62f7d --- /dev/null +++ b/core/profiles/minimal/config/plugin.core.block.stark.admin.yml @@ -0,0 +1,18 @@ +id: stark.admin +label: Administration +region: sidebar_first +weight: '1' +module: system +status: '1' +visibility: + path: + visibility: '0' + pages: '' + role: + roles: { } + node_type: + types: { } + visibility__active_tab: edit-visibility-path +plugin: 'system_menu_block:menu-admin' +settings: + cache: '-1' diff --git a/core/profiles/minimal/config/plugin.core.block.stark.login.yml b/core/profiles/minimal/config/plugin.core.block.stark.login.yml new file mode 100644 index 0000000..6154106 --- /dev/null +++ b/core/profiles/minimal/config/plugin.core.block.stark.login.yml @@ -0,0 +1,18 @@ +id: stark.login +label: 'User login' +region: sidebar_first +weight: '0' +module: user +status: '1' +visibility: + path: + visibility: '0' + pages: '' + role: + roles: { } + node_type: + types: { } + visibility__active_tab: edit-visibility-path +plugin: user_login_block +settings: + cache: '-1' diff --git a/core/profiles/minimal/config/plugin.core.block.stark.tools.yml b/core/profiles/minimal/config/plugin.core.block.stark.tools.yml new file mode 100644 index 0000000..4942f50 --- /dev/null +++ b/core/profiles/minimal/config/plugin.core.block.stark.tools.yml @@ -0,0 +1,18 @@ +id: stark.tools +label: Tools +region: sidebar_first +weight: '0' +module: system +status: '1' +visibility: + path: + visibility: '0' + pages: '' + role: + roles: { } + node_type: + types: { } + visibility__active_tab: edit-visibility-path +plugin: 'system_menu_block:menu-tools' +settings: + cache: '-1' diff --git a/core/profiles/minimal/lib/Drupal/minimal/Tests/MinimalTest.php b/core/profiles/minimal/lib/Drupal/minimal/Tests/MinimalTest.php new file mode 100644 index 0000000..fbfb65b --- /dev/null +++ b/core/profiles/minimal/lib/Drupal/minimal/Tests/MinimalTest.php @@ -0,0 +1,44 @@ + 'Minimal installation profile', + 'description' => 'Tests Minimal installation profile expectations.', + 'group' => 'Minimal', + ); + } + + /** + * Tests Minimal installation profile. + */ + function testMinimal() { + $this->drupalGet(''); + // Check the login block is present. + $this->assertLink(t('Create new account')); + $this->assertResponse(200); + + // Create a user to test tools and navigation blocks for logged in users + // with appropriate permissions. + $user = $this->drupalCreateUser(array('access administration pages', 'administer content types')); + $this->drupalLogin($user); + $this->drupalGet(''); + $this->assertText(t('Tools')); + $this->assertText(t('Administration')); + } +}