Fixed failing tests because of legacy currency codes

This commit is contained in:
Constantin Graf
2025-07-17 17:47:51 +02:00
parent 9158b445f1
commit f2cdbe1e7e
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));
}
}