You are here

public function CacheFlushUICRUDAccessTest::testAccessInterface in CacheFlush 7.3

Test interface listed entity views access.

File

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

Class

CacheFlushUICRUDAccessTest
Defines a test for cacheflush ui module CRUD access.

Code

public function testAccessInterface() {
  $this
    ->drupalLogin($this->interface_user);

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

  // User has access on the own entity to all operations.
  $this
    ->assertLink('Edit', 0);
  $this
    ->assertLink('Delete', 0);
  $this
    ->drupalLogout();
}