Commit b58484d0 authored by webchick's avatar webchick

Issue #1891324 by alexpott, chx: Minimal lost its blocks.

parent 4fff3949
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'
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'
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'
<?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'));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment