diff --git a/Lombiq.Hosting.Tenants.EmailQuotaManagement.Tests.UI/Extensions/EmailQuotaManagementExtensions.cs b/Lombiq.Hosting.Tenants.EmailQuotaManagement.Tests.UI/Extensions/EmailQuotaManagementExtensions.cs index 8087a753..803e600d 100644 --- a/Lombiq.Hosting.Tenants.EmailQuotaManagement.Tests.UI/Extensions/EmailQuotaManagementExtensions.cs +++ b/Lombiq.Hosting.Tenants.EmailQuotaManagement.Tests.UI/Extensions/EmailQuotaManagementExtensions.cs @@ -7,7 +7,8 @@ public static class EmailQuotaManagementExtensions { public static void SetEmailQuotaManagementOptionsForUITest( this OrchardCoreUITestExecutorConfiguration configuration, - long maximumEmails) + long maximumEmails, + string emailHost = "localhost") { configuration.OrchardCoreConfiguration.BeforeAppStart += (_, argumentsBuilder) => @@ -17,9 +18,14 @@ public static void SetEmailQuotaManagementOptionsForUITest( "OrchardCore:Lombiq_Hosting_Tenants_EmailQuotaManagement:EmailQuotaPerMonth", maximumEmails); + argumentsBuilder + .AddWithValue( + "OrchardCore:SmtpSettings:Host", + emailHost); + return Task.CompletedTask; }; configuration.UseSmtpService = true; } -} +} \ No newline at end of file