function LocaleInstallTest::testLocaleInstallMessage

Same name in other branches
  1. 11.x core/modules/locale/tests/src/Functional/LocaleInstallTest.php \Drupal\Tests\locale\Functional\LocaleInstallTest::testLocaleInstallMessage()

Tests Locale install message.

File

core/modules/locale/tests/src/Functional/LocaleInstallTest.php, line 33

Class

LocaleInstallTest
Test installation of Locale module.

Namespace

Drupal\Tests\locale\Functional

Code

public function testLocaleInstallMessage() : void {
    $admin_user = $this->drupalCreateUser([
        'access administration pages',
        'administer modules',
    ]);
    $this->drupalLogin($admin_user);
    $edit = [];
    $edit['modules[locale][enable]'] = 'locale';
    $this->drupalGet('admin/modules');
    $this->submitForm($edit, 'Install');
    $this->assertSession()
        ->statusMessageContains('available translations', 'status');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.