Skip to content

Commit

Permalink
Rename SetShiftTimeAsync to SetTimeShiftAsync.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Nov 21, 2024
1 parent 4b39266 commit 90d2bc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Lombiq.Tests.UI.Samples/Tests/ShiftTimeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ await context.FillInCodeMirrorEditorWithRetriesAsync(
// This extension method navigates to the action which sets the time offset. You can set it in terms of
// days or seconds. Both accept fractions and negative values. If both days and seconds are set, they
// are added together.
await context.SetShiftTimeAsync(TimeSpan.FromDays(10));
await context.SetTimeShiftAsync(TimeSpan.FromDays(10));

// Let's verify the date!
var tenDaysFromNow = await GetNowAsync(context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ public static Task ExecuteJsonRecipeSiteSettingAsync<T>(this UITestContext conte
/// <summary>
/// Sets the time shift to a specific value.
/// </summary>
public static Task SetShiftTimeAsync(this UITestContext context, TimeSpan time)
public static Task SetTimeShiftAsync(this UITestContext context, TimeSpan time)
{
context.EnsureValidOrchardCoreTenantScope();
return time.TotalDays >= 1.0
Expand All @@ -757,7 +757,7 @@ public static Task SetShiftTimeAsync(this UITestContext context, TimeSpan time)
/// <summary>
/// Adds the specified value to the time shift.
/// </summary>
public static Task AddShiftTimeAsync(this UITestContext context, TimeSpan time)
public static Task AddTimeShiftAsync(this UITestContext context, TimeSpan time)
{
context.EnsureValidOrchardCoreTenantScope();
return time.TotalDays >= 1.0
Expand Down

0 comments on commit 90d2bc6

Please sign in to comment.