You are here

public function AddThisPermissionsTestCase::testUserWithoutAdministerAddThisPermissionShouldNotBeAllowedToAccessAddThisSystemSettings in AddThis 7.4

File

tests/AddThisPermissionsTestCase.test, line 20

Class

AddThisPermissionsTestCase

Code

public function testUserWithoutAdministerAddThisPermissionShouldNotBeAllowedToAccessAddThisSystemSettings() {
  $this
    ->drupalLogin($this
    ->createAdminUserWithoutAddThisAdministrationPermission());
  $this
    ->drupalGet('admin/config/system/addthis');
  $this
    ->assertRaw(t('Access denied'), 'A user without administer addthis permission should not be able to access AddThis system settings.');
}