mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 16:22:16 +01:00
Fixed failing tests because of legacy currency codes
This commit is contained in:
@@ -92,4 +92,15 @@ class CurrencyServiceTest extends TestCaseWithDatabase
|
||||
// Assert
|
||||
$this->assertSame('XXX', $symbol);
|
||||
}
|
||||
|
||||
public function test_get_random_currency_code(): void
|
||||
{
|
||||
// Act
|
||||
$currencyCode = $this->currencyService->getRandomCurrencyCode();
|
||||
|
||||
// Assert
|
||||
$this->assertNotEmpty($currencyCode);
|
||||
$this->assertIsString($currencyCode);
|
||||
$this->assertNotNull(Currency::of($currencyCode));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user