Skip to content

Commit 6e540de

Browse files
committed
Added additional logging
1 parent 76a8d4c commit 6e540de

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,24 @@ public async Task PostSave_Validates_Domains_Exist()
444444
body = body.TrimStart(AngularJsonMediaTypeFormatter.XsrfPrefix);
445445
ContentItemDisplay display = JsonConvert.DeserializeObject<ContentItemDisplay>(body);
446446

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+
}
448465
ILocalizedTextService localizedTextService = GetRequiredService<ILocalizedTextService>();
449466
foreach (var culture in localizedTextService.GetSupportedCultures())
450467
{

0 commit comments

Comments
 (0)