You are here

protected function CacheFlushAdvancedTest::setUp in CacheFlush 8

Sets up the test.

Overrides BrowserTestBase::setUp

File

modules/cacheflush_advanced/tests/src/Functional/CacheFlushAdvancedTest.php, line 36

Class

CacheFlushAdvancedTest
Test cacheflush advanced functionality.

Namespace

Drupal\Tests\cacheflush_advanced\Functional

Code

protected function setUp() {
  parent::setUp();
  $roles = [
    'cacheflush create new',
    'cacheflush view own',
    'cacheflush edit own',
    'cacheflush delete own',
  ];
  $user = $this
    ->createUser($roles);
  $this
    ->drupalLogin($user);
  $this
    ->interfaceErrorrs();
  $this
    ->interfaceCrud();
}