You are here

protected function FileManagedTestBase::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/file/tests/src/Functional/FileManagedTestBase.php \Drupal\Tests\file\Functional\FileManagedTestBase::setUp()
  2. 9 core/modules/file/tests/src/Functional/FileManagedTestBase.php \Drupal\Tests\file\Functional\FileManagedTestBase::setUp()

File

core/modules/file/tests/src/Functional/FileManagedTestBase.php, line 23

Class

FileManagedTestBase
Base class for file tests that use the file_test module to test uploads and hooks.

Namespace

Drupal\Tests\file\Functional

Code

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

  // Clear out any hook calls.
  file_test_reset();
}