File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
src/Umbraco.Tests.Integration/Umbraco.Web.BackOffice/Controllers Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -444,7 +444,24 @@ public async Task PostSave_Validates_Domains_Exist()
444
444
body = body . TrimStart ( AngularJsonMediaTypeFormatter . XsrfPrefix ) ;
445
445
ContentItemDisplay display = JsonConvert . DeserializeObject < ContentItemDisplay > ( body ) ;
446
446
447
- TestContext . Progress . Write ( $ "======CURRENT THREAD CULTURE IN TEST======{ Thread . CurrentThread . CurrentCulture . Name } ") ;
447
+ var currentThreadCulture = Thread . CurrentThread . CurrentCulture . TwoLetterISOLanguageName ;
448
+ var currentUICulture = Thread . CurrentThread . CurrentUICulture . TwoLetterISOLanguageName ;
449
+ if ( string . IsNullOrEmpty ( currentThreadCulture ) )
450
+ {
451
+ TestContext . Progress . Write ( $ "======CURRENT THREAD CULTURE IN TEST====== NO CULTURE") ;
452
+ }
453
+ else
454
+ {
455
+ TestContext . Progress . Write ( $ "======CURRENT THREAD CULTURE IN TEST======{ currentThreadCulture } ") ;
456
+ }
457
+ if ( string . IsNullOrEmpty ( currentUICulture ) )
458
+ {
459
+ TestContext . Progress . Write ( $ "======CURRENT UI CULTURE IN TEST====== NO CULTURE") ;
460
+ }
461
+ else
462
+ {
463
+ TestContext . Progress . Write ( $ "======CURRENT UI CULTURE IN TEST======{ currentUICulture } ") ;
464
+ }
448
465
ILocalizedTextService localizedTextService = GetRequiredService < ILocalizedTextService > ( ) ;
449
466
foreach ( var culture in localizedTextService . GetSupportedCultures ( ) )
450
467
{
You can’t perform that action at this time.
0 commit comments