public function AdminUserLanguageFormPermissionTest::testPermissionGranted in Admin User Language 8
Tests the basic functionality of the field.
File
- tests/
src/ Functional/ AdminUserLanguageFormPermissionTest.php, line 41
Class
- AdminUserLanguageFormPermissionTest
- Tests BasicForm to alter admin_user_language configuration.
Namespace
Drupal\Tests\admin_user_language\FunctionalCode
public function testPermissionGranted() {
$admin_user = $this
->drupalCreateUser([
'access administration pages',
'administer admin interface language',
]);
$this
->drupalLogin($admin_user);
// Display settings form.
$string = $this
->drupalGet('admin/config/admin_user_language/settings');
$this
->assertNotContains('Access denied', $string);
}