public function RounderTest::testUnknownCurrency in Commerce Core 8.2
Tests rounding a price with an unknown currency.
::covers round.
File
- modules/
price/ tests/ src/ Unit/ RounderTest.php, line 52
Class
- RounderTest
- Tests the Rounder class.
Namespace
Drupal\Tests\commerce_price\UnitCode
public function testUnknownCurrency() {
$this
->expectException(\InvalidArgumentException::class);
$this->rounder
->round(new Price('10', 'EUR'));
}