public function CacheFlushUICRUDAccessTest::accessInterface2 in CacheFlush 8
Test interface listed entity views access.
1 call to CacheFlushUICRUDAccessTest::accessInterface2()
- CacheFlushUICRUDAccessTest::testAccess in modules/
cacheflush_ui/ tests/ src/ Functional/ CacheFlushUICRUDAccessTest.php - Run CRUD access test functions.
File
- modules/
cacheflush_ui/ tests/ src/ Functional/ CacheFlushUICRUDAccessTest.php, line 257
Class
- CacheFlushUICRUDAccessTest
- Test cacheflush UI access on links and interface.
Namespace
Drupal\cacheflush_ui\TestsCode
public function accessInterface2() {
$this
->drupalLogin($this->interfaceUser2);
// 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();
}