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 0000000000000000000000000000000000000000..5f62f7dcc82553c4eeafdecb93cfbd27b7a981f4 --- /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 0000000000000000000000000000000000000000..61541067b4a802a5ecaf2914c58cb2eaad1833af --- /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 0000000000000000000000000000000000000000..4942f507a4fe92579437d34a79198833ff336ae0 --- /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 0000000000000000000000000000000000000000..fbfb65b2b2c550cf4c9f64beb828a873839e9472 --- /dev/null +++ b/core/profiles/minimal/lib/Drupal/minimal/Tests/MinimalTest.php @@ -0,0 +1,44 @@ +<?php + +/** + * @file + * Contains Drupal\minimal\Tests\MinimalTest. + */ + +namespace Drupal\minimal\Tests; + +use Drupal\simpletest\WebTestBase; + +/** + * Tests Minimal installation profile expectations. + */ +class MinimalTest extends WebTestBase { + + protected $profile = 'minimal'; + + public static function getInfo() { + return array( + 'name' => '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')); + } +}