public function CacheFlushUICRUD::setUp in CacheFlush 7.3
Sets up the test.
Overrides DrupalWebTestCase::setUp
File
- modules/
cacheflush_ui/ cacheflush_ui.test, line 27 - Contains test suite for cacheflush ui module.
Class
- CacheFlushUICRUD
- Test the UI CRUD.
Code
public function setUp() {
parent::setUp('cacheflush_ui');
$roles = array(
'cacheflush create new',
'cacheflush administer',
'cacheflush view own',
'cacheflush edit own',
'cacheflush delete own',
);
$user = $this
->drupalCreateUser($roles);
$this
->drupalLogin($user);
}