function LocaleInstallTest::testLocaleInstallMessage
Same name in other branches
- 10 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\FunctionalCode
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.