public function CommerceExchangerCalculatorTest::testPriceConversionEmpty in Commerce Exchanger 8
@covers ::priceConversion
File
- tests/
src/ Kernel/ CommerceExchangerCalculatorTest.php, line 179
Class
- CommerceExchangerCalculatorTest
- Tests the exchanger calculator.
Namespace
Drupal\Tests\commerce_exchanger\KernelCode
public function testPriceConversionEmpty() {
$this->exchanger
->setStatus(FALSE);
$this->exchanger
->save();
$this
->expectException(ExchangeRatesDataMismatchException::class);
$this->container
->get('commerce_exchanger.calculate')
->priceConversion($this->priceHrk, 'USD');
}