3 namespace Drupal\Tests\minimal\Functional;
5 use Drupal\Tests\BrowserTestBase;
8 * Tests Minimal installation profile expectations.
12 class MinimalTest extends BrowserTestBase {
14 protected $profile = 'minimal';
17 * Tests Minimal installation profile.
19 public function testMinimal() {
21 // Check the login block is present.
22 $this->assertLink(t('Create new account'));
23 $this->assertResponse(200);
25 // Create a user to test tools and navigation blocks for logged in users
26 // with appropriate permissions.
27 $user = $this->drupalCreateUser(['access administration pages', 'administer content types']);
28 $this->drupalLogin($user);
30 $this->assertText(t('Tools'));
31 $this->assertText(t('Administration'));
33 // Ensure that there are no pending updates after installation.
34 $this->drupalLogin($this->rootUser);
35 $this->drupalGet('update.php/selection');
36 $this->assertText('No pending updates.');
38 // Ensure that there are no pending entity updates after installation.
39 $this->assertFalse($this->container->get('entity.definition_update_manager')->needsUpdates(), 'After installation, entity schema is up to date.');