mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Removes the option to disable theme scripts
This commit is contained in:
1 parent
531450b3db
commit
15945c2e56
17 files changed
+15
-201
No files matched your search
-3
@@ -20,17 +20,14 @@ public class ThemeSettingsResponseFixture
|
||||
/// Creates a random valid <see cref="ThemeSettingsResponse"/>.
|
||||
/// </summary>
|
||||
/// <param name="maxArchiveBytes">Optional. The maximum allowed size of a theme archive, in bytes.</param>
|
||||
/// <param name="allowThemeScripts">Optional. Whether theme templates may contain script elements.</param>
|
||||
/// <param name="defaultThemeId">Optional. The identifier of the default theme.</param>
|
||||
/// <returns>The created <see cref="ThemeSettingsResponse"/>.</returns>
|
||||
public ThemeSettingsResponse Create(
|
||||
long? maxArchiveBytes = null,
|
||||
bool? allowThemeScripts = null,
|
||||
string? defaultThemeId = null)
|
||||
{
|
||||
return new ThemeSettingsResponse(
|
||||
maxArchiveBytes ?? _faker.Random.Long(1_000_000, 100_000_000),
|
||||
allowThemeScripts ?? _faker.Random.Bool(),
|
||||
defaultThemeId ?? _faker.Lorem.Slug(2));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user