Issue #1891324 by alexpott, chx: Minimal lost its blocks.
[project/drupal.git] / core / profiles / minimal / lib / Drupal / minimal / Tests / MinimalTest.php
1 <?php
2
3 /**
4 * @file
5 * Contains Drupal\minimal\Tests\MinimalTest.
6 */
7
8 namespace Drupal\minimal\Tests;
9
10 use Drupal\simpletest\WebTestBase;
11
12 /**
13 * Tests Minimal installation profile expectations.
14 */
15 class MinimalTest extends WebTestBase {
16
17 protected $profile = 'minimal';
18
19 public static function getInfo() {
20 return array(
21 'name' => 'Minimal installation profile',
22 'description' => 'Tests Minimal installation profile expectations.',
23 'group' => 'Minimal',
24 );
25 }
26
27 /**
28 * Tests Minimal installation profile.
29 */
30 function testMinimal() {
31 $this->drupalGet('');
32 // Check the login block is present.
33 $this->assertLink(t('Create new account'));
34 $this->assertResponse(200);
35
36 // Create a user to test tools and navigation blocks for logged in users
37 // with appropriate permissions.
38 $user = $this->drupalCreateUser(array('access administration pages', 'administer content types'));
39 $this->drupalLogin($user);
40 $this->drupalGet('');
41 $this->assertText(t('Tools'));
42 $this->assertText(t('Administration'));
43 }
44 }