public function FormatPriceTest::testFormatPrice in Commerce Google Tag Manager 8.2
Same name and namespace in other branches
- 8 tests/src/Unit/FormatPriceTest.php \Drupal\Tests\commerce_google_tag_manager\Unit\FormatPriceTest::testFormatPrice()
@covers ::formatPrice
@dataProvider pricesProvider
File
- tests/
src/ Unit/ FormatPriceTest.php, line 24
Class
- FormatPriceTest
- Tests the formatPrice of EventTrackerService class.
Namespace
Drupal\Tests\commerce_google_tag_manager\UnitCode
public function testFormatPrice($price, $expected) {
$result = EventTrackerService::formatPrice($price);
$this
->assertEquals($expected, $result);
}