protected function MediaBulkFormTest::setUp in Media entity 8
Overrides MediaEntityFunctionalTestBase::setUp
File
- tests/
src/ Functional/ MediaBulkFormTest.php, line 39
Class
- MediaBulkFormTest
- Tests a media bulk form.
Namespace
Drupal\Tests\media_entity\FunctionalCode
protected function setUp() {
parent::setUp();
$this->testBundle = $this
->drupalCreateMediaBundle();
// Create some test media entities.
$this->mediaEntities = [];
for ($i = 1; $i <= 5; $i++) {
$media = Media::create([
'bundle' => $this->testBundle
->id(),
]);
$media
->save();
$this->mediaEntities[] = $media;
}
}