You are here

public function AdminUserLanguageFormPermissionTest::testPermissionDenied in Admin User Language 8

Tests the basic functionality of the field.

File

tests/src/Functional/AdminUserLanguageFormPermissionTest.php, line 26

Class

AdminUserLanguageFormPermissionTest
Tests BasicForm to alter admin_user_language configuration.

Namespace

Drupal\Tests\admin_user_language\Functional

Code

public function testPermissionDenied() {
  $admin_user = $this
    ->drupalCreateUser([
    'access administration pages',
  ]);
  $this
    ->drupalLogin($admin_user);

  // Display settings form.
  $output = $this
    ->drupalGet('admin/config/admin_user_language/settings');
  $this
    ->assertContains('Access denied', $output);
}