setUpMedia example

$this->mediaRepository->create([$data], Context::createDefaultContext());
    }

    /** * NEXT-20034 * * @group quarantined */
    public function testMediaConfigurationLoading(): void
    {
        $this->setUpMedia();

        $theme = [[
            'id' => $this->ids->get('base'),
            'name' => 'base',
            'author' => 'test',
            'technicalName' => 'base',
            'active' => true,
            'baseConfig' => [
                'fields' => [
                    'media-field' => self::media(self::MEDIA_ID),
                ],
            ],
Home | Imprint | This part of the site doesn't use cookies.