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:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user