protected function FileItemValidationTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/file/tests/src/Kernel/FileItemValidationTest.php \Drupal\Tests\file\Kernel\FileItemValidationTest::setUp()
Overrides KernelTestBase::setUp
File
- core/
modules/ file/ tests/ src/ Kernel/ FileItemValidationTest.php, line 40 - Contains \Drupal\Tests\file\Kernel\FileItemValidationTest.
Class
- FileItemValidationTest
- Tests that files referenced in file and image fields are always validated.
Namespace
Drupal\Tests\file\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('user');
$this
->installEntitySchema('file');
$this
->installSchema('file', 'file_usage');
$this
->installSchema('system', 'sequences');
$this->user = User::create([
'name' => 'username',
'status' => 1,
]);
$this->user
->save();
}