You are here

public function ViewModePageTestCase::testNoAccessWithoutPermissions in View Mode Page 7.2

Same name and namespace in other branches
  1. 8.2 view_mode_page.test \ViewModePageTestCase::testNoAccessWithoutPermissions()

Test VMP perms

File

./view_mode_page.test, line 155

Class

ViewModePageTestCase
Tests

Code

public function testNoAccessWithoutPermissions() {
  $user = $this
    ->drupalCreateUser(array(
    'administer nodes',
    'administer content types',
  ));
  $this
    ->drupalLogin($user);
  $this
    ->drupalGet('admin/structure/types/manage/article/display');
  $this
    ->assertResponse(200, 'User is allowed to access the manage display page');
  $this
    ->assertNoFieldByName('additional_settings[view_mode_page_settings][view_mode_page_url_pattern]');
}