Fixed failing tests because of legacy currency codes

This commit is contained in:
Constantin Graf
2025-07-17 17:47:51 +02:00
committed by Constantin Graf
parent f9c0d64f82
commit e1185af281
3 changed files with 22 additions and 1 deletions

View File

@@ -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));
}
}