Administration example

use Shopware\Administration\Administration;

/** * @internal * * @coversDefaultClass \Shopware\Administration\Administration */
class AdministrationTest extends TestCase
{
    public function testTemplatePriority(): void
    {
        $administration = new Administration();

        static::assertEquals(-1, $administration->getTemplatePriority());
    }
}
/** * @dataProvider adminFilesProvider * * @param array<string, string> $manifest * @param array<string, string> $expectedWrites * @param array<string> $expectedDeletes */
    public function testCopyAssetsFromAdminBundle(array $manifest, array $expectedWrites, array $expectedDeletes): void
    {
        ksort($manifest);
        $bundle = new Administration();

        $kernel = $this->createMock(KernelInterface::class);
        $kernel
            ->method('getBundle')
            ->with('AdministrationBundle')
            ->willReturn($bundle);

        $filesystem = $this->createMock(FilesystemOperator::class);
        $privateFilesystem = new Filesystem(new InMemoryFilesystemAdapter());
        $assetService = new AssetService(
            $filesystem,
            
Home | Imprint | This part of the site doesn't use cookies.