From d2fed076fd369247fa628f6acb0e182820133d11 Mon Sep 17 00:00:00 2001 From: Luke Fisher Date: Thu, 16 May 2024 08:17:01 +0100 Subject: [PATCH] Update tests for invalidating cache --- ...CacheNotificationHandler_Handle_ContentMovingNotification.cs | 2 +- ...ationHandler_Handle_ContentMovingToRecycleBinNotification.cs | 2 +- ...CacheNotificationHandler_Handle_ContentSavingNotification.cs | 2 +- ...otificationHandler_Handle_ContentUnpublishingNotification.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentMovingNotification.cs b/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentMovingNotification.cs index 4f72860..5988995 100644 --- a/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentMovingNotification.cs +++ b/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentMovingNotification.cs @@ -49,7 +49,7 @@ public void Should_Call_InvisibleNodeCache_ClearRoute() provider.Verify(m => m.GetOtherUrls(id), Times.Once); provider.VerifyNoOtherCalls(); - cache.Verify(m => m.ClearRoute("example.org", "/home/"), Times.Once); + cache.Verify(m => m.ClearRoute("https://example.org", "/home/"), Times.Once); cache.VerifyNoOtherCalls(); } } \ No newline at end of file diff --git a/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentMovingToRecycleBinNotification.cs b/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentMovingToRecycleBinNotification.cs index 09fd02f..dfdec27 100644 --- a/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentMovingToRecycleBinNotification.cs +++ b/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentMovingToRecycleBinNotification.cs @@ -49,7 +49,7 @@ public void Should_Call_InvisibleNodeCache_ClearRoute() provider.Verify(m => m.GetOtherUrls(id), Times.Once); provider.VerifyNoOtherCalls(); - cache.Verify(m => m.ClearRoute("example.org", "/home/"), Times.Once); + cache.Verify(m => m.ClearRoute("https://example.org", "/home/"), Times.Once); cache.VerifyNoOtherCalls(); } } \ No newline at end of file diff --git a/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentSavingNotification.cs b/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentSavingNotification.cs index e9e74ec..0067c0f 100644 --- a/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentSavingNotification.cs +++ b/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentSavingNotification.cs @@ -48,7 +48,7 @@ public void Should_Call_InvisibleNodeCache_ClearRoute() provider.Verify(m => m.GetOtherUrls(id), Times.Once); provider.VerifyNoOtherCalls(); - cache.Verify(m => m.ClearRoute("example.org", "/home/"), Times.Once); + cache.Verify(m => m.ClearRoute("https://example.org", "/home/"), Times.Once); cache.VerifyNoOtherCalls(); } } \ No newline at end of file diff --git a/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentUnpublishingNotification.cs b/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentUnpublishingNotification.cs index ca7cb3d..f71256a 100644 --- a/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentUnpublishingNotification.cs +++ b/src/Our.Umbraco.InvisibleNodes.Tests/Notifications/InvalidateCacheNotificationHandler_Handle_ContentUnpublishingNotification.cs @@ -48,7 +48,7 @@ public void Should_Call_InvisibleNodeCache_ClearRoute() provider.Verify(m => m.GetOtherUrls(id), Times.Once); provider.VerifyNoOtherCalls(); - cache.Verify(m => m.ClearRoute("example.org", "/home/"), Times.Once); + cache.Verify(m => m.ClearRoute("https://example.org", "/home/"), Times.Once); cache.VerifyNoOtherCalls(); } } \ No newline at end of file