mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
Fixed typos in organization format settings
This commit is contained in:
committed by
Gregor Vostrak
parent
301d09e830
commit
e374d8b3de
@@ -29,7 +29,7 @@ class LocalizationServiceTest extends TestCaseWithDatabase
|
||||
parent::setUp();
|
||||
$this->localizationService = new LocalizationService(
|
||||
CurrencyFormat::SymbolAfterWithSpace,
|
||||
DateFormat::PointSeperatedDMYYYY,
|
||||
DateFormat::PointSeparatedDMYYYY,
|
||||
TimeFormat::TwelveHours,
|
||||
NumberFormat::ThousandsPointDecimalComma,
|
||||
IntervalFormat::Decimal,
|
||||
@@ -105,11 +105,11 @@ class LocalizationServiceTest extends TestCaseWithDatabase
|
||||
$this->assertSame('30001h 03m', $formatted);
|
||||
}
|
||||
|
||||
public function test_format_interval_with_type_hours_minutes_colon_seperated(): void
|
||||
public function test_format_interval_with_type_hours_minutes_colon_separated(): void
|
||||
{
|
||||
// Arrange
|
||||
$interval = CarbonInterval::seconds(4 + (60 * 3) + (60 * 60 * 30001));
|
||||
$this->localizationService->setIntervalFormat(IntervalFormat::HoursMinutesColonSeperated);
|
||||
$this->localizationService->setIntervalFormat(IntervalFormat::HoursMinutesColonSeparated);
|
||||
|
||||
// Act
|
||||
$formatted = $this->localizationService->formatInterval($interval);
|
||||
@@ -118,11 +118,11 @@ class LocalizationServiceTest extends TestCaseWithDatabase
|
||||
$this->assertSame('30001:03', $formatted);
|
||||
}
|
||||
|
||||
public function test_format_interval_with_type_hours_minutes_seconds_colon_seperated(): void
|
||||
public function test_format_interval_with_type_hours_minutes_seconds_colon_separated(): void
|
||||
{
|
||||
// Arrange
|
||||
$interval = CarbonInterval::seconds(4 + (60 * 3) + (60 * 60 * 30001));
|
||||
$this->localizationService->setIntervalFormat(IntervalFormat::HoursMinutesSecondsColonSeperated);
|
||||
$this->localizationService->setIntervalFormat(IntervalFormat::HoursMinutesSecondsColonSeparated);
|
||||
|
||||
// Act
|
||||
$formatted = $this->localizationService->formatInterval($interval);
|
||||
@@ -215,10 +215,10 @@ class LocalizationServiceTest extends TestCaseWithDatabase
|
||||
$this->assertSame('EUR 1 234 567,89', $formatted);
|
||||
}
|
||||
|
||||
public function test_format_date_with_type_slash_seperated_ddmmy(): void
|
||||
public function test_format_date_with_type_slash_separated_ddmmy(): void
|
||||
{
|
||||
// Arrange
|
||||
$this->localizationService->setDateFormat(DateFormat::SlashSeperatedDDMMYYYY);
|
||||
$this->localizationService->setDateFormat(DateFormat::SlashSeparatedDDMMYYYY);
|
||||
$date = Carbon::createFromDate(2001, 2, 3);
|
||||
|
||||
// Act
|
||||
|
||||
Reference in New Issue
Block a user