ExtensionThemeStillInUseException example


class ExtensionThemeStillInUseExceptionTest extends TestCase
{
    public function testGetErrorCode(): void
    {
        static::assertSame(
            'FRAMEWORK__EXTENSION_THEME_STILL_IN_USE',
            (new ExtensionThemeStillInUseException('36cf0d7a018a41719f29f50f2a056179'))->getErrorCode()
        );
    }

    public function testGetStatusCode(): void
    {
        static::assertSame(
            Response::HTTP_FORBIDDEN,
            (new ExtensionThemeStillInUseException('36cf0d7a018a41719f29f50f2a056179'))->getStatusCode()
        );
    }

    

        return new self(
            Response::HTTP_BAD_REQUEST,
            self::CANNOT_DELETE_COMPOSER_MANAGED,
            'Extension {{ name }} is managed by Composer and cannot be deleted',
            ['name' => $pluginName]
        );
    }

    public static function extensionThemeStillInUse(string $extensionId): self
    {
        return new ExtensionThemeStillInUseException($extensionId);
    }

    public static function extensionInstallException(string $message): self
    {
        return new ExtensionInstallException($message);
    }

    /** * @param array<string, array<string, mixed>> $deltas */
    public static function extensionUpdateRequiresConsentAffirmationException(string $appName, array $deltas): self
    {
Home | Imprint | This part of the site doesn't use cookies.