Downgraded cherry picked test to work on 8.2.1
This commit is contained in:
@@ -1108,7 +1108,7 @@ namespace Umbraco.Tests.PublishedContent
|
|||||||
|
|
||||||
_snapshotService.Notify(new[]
|
_snapshotService.Notify(new[]
|
||||||
{
|
{
|
||||||
new ContentCacheRefresher.JsonPayload(1, Guid.Empty, TreeChangeTypes.RefreshNode)
|
new ContentCacheRefresher.JsonPayload(1, TreeChangeTypes.RefreshNode)
|
||||||
}, out _, out _);
|
}, out _, out _);
|
||||||
|
|
||||||
Assert.AreEqual(2, contentStore.Test.LiveGen);
|
Assert.AreEqual(2, contentStore.Test.LiveGen);
|
||||||
@@ -1128,7 +1128,7 @@ namespace Umbraco.Tests.PublishedContent
|
|||||||
/// 2) Save and publish it
|
/// 2) Save and publish it
|
||||||
/// 3) Publish it with descendants
|
/// 3) Publish it with descendants
|
||||||
/// 4) Repeat steps 2 and 3
|
/// 4) Repeat steps 2 and 3
|
||||||
///
|
///
|
||||||
/// Which has caused an exception. To replicate this test:
|
/// Which has caused an exception. To replicate this test:
|
||||||
/// 1) RefreshBranch with kits for a branch where the top most node is unpublished
|
/// 1) RefreshBranch with kits for a branch where the top most node is unpublished
|
||||||
/// 2) RefreshBranch with kits for the branch where the top most node is published
|
/// 2) RefreshBranch with kits for the branch where the top most node is published
|
||||||
@@ -1156,7 +1156,7 @@ namespace Umbraco.Tests.PublishedContent
|
|||||||
|
|
||||||
//children of 1
|
//children of 1
|
||||||
yield return CreateInvariantKit(20, 1, 1, paths);
|
yield return CreateInvariantKit(20, 1, 1, paths);
|
||||||
yield return CreateInvariantKit(30, 1, 2, paths);
|
yield return CreateInvariantKit(30, 1, 2, paths);
|
||||||
yield return CreateInvariantKit(40, 1, 3, paths);
|
yield return CreateInvariantKit(40, 1, 3, paths);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1183,7 +1183,7 @@ namespace Umbraco.Tests.PublishedContent
|
|||||||
|
|
||||||
_snapshotService.Notify(new[]
|
_snapshotService.Notify(new[]
|
||||||
{
|
{
|
||||||
new ContentCacheRefresher.JsonPayload(1, Guid.Empty, changeType)
|
new ContentCacheRefresher.JsonPayload(1, changeType)
|
||||||
}, out _, out _);
|
}, out _, out _);
|
||||||
|
|
||||||
Assert.AreEqual(assertGen, contentStore.Test.LiveGen);
|
Assert.AreEqual(assertGen, contentStore.Test.LiveGen);
|
||||||
@@ -1193,12 +1193,12 @@ namespace Umbraco.Tests.PublishedContent
|
|||||||
var (gen, contentNode) = contentStore.Test.GetValues(1)[0];
|
var (gen, contentNode) = contentStore.Test.GetValues(1)[0];
|
||||||
Assert.AreEqual(assertGen, gen);
|
Assert.AreEqual(assertGen, gen);
|
||||||
//even when unpublishing/re-publishing/etc... the linked list is always maintained
|
//even when unpublishing/re-publishing/etc... the linked list is always maintained
|
||||||
AssertLinkedNode(contentNode, 100, 2, 3, 20, 40);
|
AssertLinkedNode(contentNode, 100, 2, 3, 20, 40);
|
||||||
}
|
}
|
||||||
|
|
||||||
//unpublish the root
|
//unpublish the root
|
||||||
ChangePublishFlagOfRoot(false, 2, TreeChangeTypes.RefreshBranch);
|
ChangePublishFlagOfRoot(false, 2, TreeChangeTypes.RefreshBranch);
|
||||||
|
|
||||||
//publish the root (since it's not published, it will cause a RefreshBranch)
|
//publish the root (since it's not published, it will cause a RefreshBranch)
|
||||||
ChangePublishFlagOfRoot(true, 3, TreeChangeTypes.RefreshBranch);
|
ChangePublishFlagOfRoot(true, 3, TreeChangeTypes.RefreshBranch);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user