You are here

function FileEntityEditTest::setUp in File Entity (fieldable files) 8.2

Overrides FileEntityTestBase::setUp

File

tests/src/Functional/FileEntityEditTest.php, line 19

Class

FileEntityEditTest
Create a file and test file edit functionality.

Namespace

Drupal\Tests\file_entity\Functional

Code

function setUp() {
  parent::setUp();

  // Add the tasks and actions blocks.
  $this
    ->drupalPlaceBlock('local_actions_block');
  $this
    ->drupalPlaceBlock('local_tasks_block');
  $this->web_user = $this
    ->drupalCreateUser(array(
    'edit own document files',
    'create files',
  ));
  $this->admin_user = $this
    ->drupalCreateUser(array(
    'bypass file access',
    'administer files',
  ));
}