From b58484d0ca20320673f84c34fdd8865d00652d4f Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Thu, 17 Jan 2013 12:01:13 -0800
Subject: [PATCH] Issue #1891324 by alexpott, chx: Minimal lost its blocks.

---
 .../config/plugin.core.block.stark.admin.yml  | 18 ++++++++
 .../config/plugin.core.block.stark.login.yml  | 18 ++++++++
 .../config/plugin.core.block.stark.tools.yml  | 18 ++++++++
 .../lib/Drupal/minimal/Tests/MinimalTest.php  | 44 +++++++++++++++++++
 4 files changed, 98 insertions(+)
 create mode 100644 core/profiles/minimal/config/plugin.core.block.stark.admin.yml
 create mode 100644 core/profiles/minimal/config/plugin.core.block.stark.login.yml
 create mode 100644 core/profiles/minimal/config/plugin.core.block.stark.tools.yml
 create mode 100644 core/profiles/minimal/lib/Drupal/minimal/Tests/MinimalTest.php

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 000000000000..5f62f7dcc825
--- /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 000000000000..61541067b4a8
--- /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 000000000000..4942f507a4fe
--- /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 000000000000..fbfb65b2b2c5
--- /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'));
+  }
+}
-- 
GitLab