Fixes broken integration test for v17 release (#20582)

Fixes broken integration test

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>
This commit is contained in:
Mole
2025-10-21 12:42:22 +02:00
committed by GitHub
parent 3a83e4a494
commit 1099332edb

View File

@@ -34,9 +34,7 @@ public abstract class UmbracoIntegrationTestWithContentEditing : UmbracoIntegrat
protected ContentCreateModel Textpage { get; private set; } protected ContentCreateModel Textpage { get; private set; }
protected ContentScheduleCollection ContentSchedule { get; private set; } protected ICollection<CulturePublishScheduleModel> CultureAndSchedule { get; private set; }
protected CultureAndScheduleModel CultureAndSchedule { get; private set; }
protected int TextpageId { get; private set; } protected int TextpageId { get; private set; }
@@ -91,11 +89,7 @@ public abstract class UmbracoIntegrationTestWithContentEditing : UmbracoIntegrat
} }
// Sets the culture and schedule for the content, in this case, we are publishing immediately for all cultures // Sets the culture and schedule for the content, in this case, we are publishing immediately for all cultures
ContentSchedule = new ContentScheduleCollection(); CultureAndSchedule = [new CulturePublishScheduleModel { Culture = "*", Schedule = null }];
CultureAndSchedule = new CultureAndScheduleModel
{
CulturesToPublishImmediately = new HashSet<string> { "*" }, Schedules = ContentSchedule,
};
// Create and Save Content "Text Page 1" based on "umbTextpage" -> 1054 // Create and Save Content "Text Page 1" based on "umbTextpage" -> 1054
PublishedTextPage = ContentEditingBuilder.CreateSimpleContent(ContentType.Key, "Published Page"); PublishedTextPage = ContentEditingBuilder.CreateSimpleContent(ContentType.Key, "Published Page");