This repository has been archived on 2025-01-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
drupalcampbristol/core/profiles/minimal/src/Tests/MinimalTest.php

38 lines
885 B
PHP

<?php
/**
* @file
* Contains \Drupal\minimal\Tests\MinimalTest.
*/
namespace Drupal\minimal\Tests;
use Drupal\simpletest\WebTestBase;
/**
* Tests Minimal installation profile expectations.
*
* @group minimal
*/
class MinimalTest extends WebTestBase {
protected $profile = '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'));
}
}