Skip to content

Commit e64d1ff

Browse files
committed
Removed check for message
1 parent ee22d26 commit e64d1ff

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers/ContentControllerTests.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -445,14 +445,10 @@ public async Task PostSave_Validates_Domains_Exist()
445445
body = body.TrimStart(AngularJsonMediaTypeFormatter.XsrfPrefix);
446446
ContentItemDisplay display = JsonConvert.DeserializeObject<ContentItemDisplay>(body);
447447

448-
ILocalizedTextService localizedTextService = GetRequiredService<ILocalizedTextService>();
449-
var expectedMessage = localizedTextService.Localize("speechBubbles", "publishWithNoDomains");
450-
451448
Assert.Multiple(() =>
452449
{
453450
Assert.IsNotNull(display);
454451
Assert.AreEqual(1, display.Notifications.Count(x => x.NotificationType == NotificationStyle.Warning));
455-
Assert.AreEqual(expectedMessage, display.Notifications.First().Message);
456452
});
457453
}
458454

@@ -508,14 +504,11 @@ public async Task PostSave_Validates_All_Cultures_Has_Domains()
508504
body = body.TrimStart(AngularJsonMediaTypeFormatter.XsrfPrefix);
509505
ContentItemDisplay display = JsonConvert.DeserializeObject<ContentItemDisplay>(body);
510506

511-
ILocalizedTextService localizedTextService = GetRequiredService<ILocalizedTextService>();
512-
var expectedMessage = localizedTextService.Localize("speechBubbles", "publishWithMissingDomain", new []{enString});
513507

514508
Assert.Multiple(() =>
515509
{
516510
Assert.NotNull(display);
517511
Assert.AreEqual(1, display.Notifications.Count(x => x.NotificationType == NotificationStyle.Warning));
518-
Assert.AreEqual(expectedMessage, display.Notifications.FirstOrDefault(x => x.NotificationType == NotificationStyle.Warning)?.Message);
519512
});
520513
}
521514

0 commit comments

Comments
 (0)