File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -445,14 +445,10 @@ public async Task PostSave_Validates_Domains_Exist()
445
445
body = body . TrimStart ( AngularJsonMediaTypeFormatter . XsrfPrefix ) ;
446
446
ContentItemDisplay display = JsonConvert . DeserializeObject < ContentItemDisplay > ( body ) ;
447
447
448
- ILocalizedTextService localizedTextService = GetRequiredService < ILocalizedTextService > ( ) ;
449
- var expectedMessage = localizedTextService . Localize ( "speechBubbles" , "publishWithNoDomains" ) ;
450
-
451
448
Assert . Multiple ( ( ) =>
452
449
{
453
450
Assert . IsNotNull ( display ) ;
454
451
Assert . AreEqual ( 1 , display . Notifications . Count ( x => x . NotificationType == NotificationStyle . Warning ) ) ;
455
- Assert . AreEqual ( expectedMessage , display . Notifications . First ( ) . Message ) ;
456
452
} ) ;
457
453
}
458
454
@@ -508,14 +504,11 @@ public async Task PostSave_Validates_All_Cultures_Has_Domains()
508
504
body = body . TrimStart ( AngularJsonMediaTypeFormatter . XsrfPrefix ) ;
509
505
ContentItemDisplay display = JsonConvert . DeserializeObject < ContentItemDisplay > ( body ) ;
510
506
511
- ILocalizedTextService localizedTextService = GetRequiredService < ILocalizedTextService > ( ) ;
512
- var expectedMessage = localizedTextService . Localize ( "speechBubbles" , "publishWithMissingDomain" , new [ ] { enString } ) ;
513
507
514
508
Assert . Multiple ( ( ) =>
515
509
{
516
510
Assert . NotNull ( display ) ;
517
511
Assert . AreEqual ( 1 , display . Notifications . Count ( x => x . NotificationType == NotificationStyle . Warning ) ) ;
518
- Assert . AreEqual ( expectedMessage , display . Notifications . FirstOrDefault ( x => x . NotificationType == NotificationStyle . Warning ) ? . Message ) ;
519
512
} ) ;
520
513
}
521
514
You can’t perform that action at this time.
0 commit comments