You are here

public function CacheFlushUICRUDAccessTest::testAccessInterface2 in CacheFlush 7.3

Test interface listed entity views access.

File

modules/cacheflush_ui/cacheflush_ui.test, line 434
Contains test suite for cacheflush ui module.

Class

CacheFlushUICRUDAccessTest
Defines a test for cacheflush ui module CRUD access.

Code

public function testAccessInterface2() {
  $this
    ->drupalLogin($this->interface_user2);

  // Check Access on the list interface.
  $this
    ->drupalGet('admin/structure/cacheflush');
  $this
    ->assertRaw('LoggedUserEntity');
  $this
    ->assertRaw('AdminUserEntity');
  $this
    ->assertRaw('InterfaceUserEntity');
  $this
    ->assertRaw('InterfaceUser2Entity');

  // User has access to all entities.
  // Edit 1 -> own.
  // No delete.
  $this
    ->assertLink('Edit', 0);
  $this
    ->assertNoLink('Delete');
  $this
    ->drupalLogout();
}