function FileManagedTestBase::setUp
Same name in this branch
- 8.9.x core/modules/file/tests/src/Functional/FileManagedTestBase.php \Drupal\Tests\file\Functional\FileManagedTestBase::setUp()
Same name in other branches
- 9 core/modules/file/tests/src/Functional/FileManagedTestBase.php \Drupal\Tests\file\Functional\FileManagedTestBase::setUp()
- 10 core/modules/file/tests/src/Functional/FileManagedTestBase.php \Drupal\Tests\file\Functional\FileManagedTestBase::setUp()
- 11.x core/modules/file/tests/src/Functional/FileManagedTestBase.php \Drupal\Tests\file\Functional\FileManagedTestBase::setUp()
Overrides WebTestBase::setUp
File
-
core/
modules/ file/ src/ Tests/ FileManagedTestBase.php, line 28
Class
- FileManagedTestBase
- Base class for file tests that use the file_test module to test uploads and hooks.
Namespace
Drupal\file\TestsCode
protected function setUp() {
parent::setUp();
// Clear out any hook calls.
file_test_reset();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.