You are here

public function AddThisPermissionsTestCase::testUserWithoutAdministerAdvancedAddThisPermissionShouldNotBeAllowedToAccessAdvancedAddThisSystemSettings in AddThis 7.4

File

tests/AddThisPermissionsTestCase.test, line 28

Class

AddThisPermissionsTestCase

Code

public function testUserWithoutAdministerAdvancedAddThisPermissionShouldNotBeAllowedToAccessAdvancedAddThisSystemSettings() {
  $this
    ->drupalLogin($this
    ->createAdminUserWithoutAdvancedAddThisAdministrationPermission());
  $this
    ->drupalGet('admin/config/system/addthis');
  $this
    ->assertNoRaw(t('Advanced settings'), 'A user without administer advanced addthis permission should not be able to access advanced AddThis system settings.');
}