function CopyTest::setUp

Same name in other branches
  1. 10 core/modules/file/tests/src/Kernel/CopyTest.php \Drupal\Tests\file\Kernel\CopyTest::setUp()
  2. 11.x core/modules/file/tests/src/Kernel/CopyTest.php \Drupal\Tests\file\Kernel\CopyTest::setUp()

Overrides FileManagedUnitTestBase::setUp

File

core/modules/file/tests/src/Kernel/CopyTest.php, line 31

Class

CopyTest
Tests the file copy function.

Namespace

Drupal\Tests\file\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->fileRepository = $this->container
        ->get('file.repository');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.