protected function MediaLibraryAddFormTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/media_library/tests/src/Kernel/MediaLibraryAddFormTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryAddFormTest::setUp()
Overrides KernelTestBase::setUp
File
- core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryAddFormTest.php, line 41
Class
- MediaLibraryAddFormTest
- Tests the media library add form.
Namespace
Drupal\Tests\media_library\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('user');
$this
->installEntitySchema('file');
$this
->installSchema('file', 'file_usage');
$this
->installSchema('system', [
'sequences',
'key_value_expire',
]);
$this
->installEntitySchema('media');
$this
->installConfig([
'field',
'system',
'file',
'image',
'media',
'media_library',
]);
// Create an account with special UID 1.
$this
->createUser([]);
$this
->createMediaType('image', [
'id' => 'image',
]);
$this
->createMediaType('oembed:video', [
'id' => 'remote_video',
]);
}