assertMediaHasParentFolder example

'parentId' => $parentId,
                'useParentConfiguration' => true,
                'configurationId' => $configId,
            ],
        ]$this->context);

        $mediaFolderId = $media->getMediaFolderId();
        static::assertIsString($mediaFolderId);
        $this->mediaFolderService->dissolve($mediaFolderId$this->context);

        $this->assertMediaFolderIsDeleted($media);
        $this->assertMediaHasParentFolder($media$parentId);
        $this->assertConfigStillExists($configId);
    }

    public function testDissolveWithChildren(): void
    {
        $this->setFixtureContext($this->context);
        $media = $this->getJpgWithFolder();
        $configId = Uuid::randomHex();
        $parentId = Uuid::randomHex();
        $child1Id = Uuid::randomHex();
        $child2Id = Uuid::randomHex();
        
Home | Imprint | This part of the site doesn't use cookies.