function IntlTest::testCreate in Currency 8.3
@covers ::create @covers ::__construct
File
- modules/
currency_intl/ tests/ src/ Unit/ Plugin/ Currency/ AmountFormatter/ IntlTest.php, line 51
Class
- IntlTest
- @coversDefaultClass \Drupal\currency_intl\Plugin\Currency\AmountFormatter\Intl
Namespace
Drupal\Tests\currency_intl\Unit\Plugin\Currency\AmountFormatterCode
function testCreate() {
$container = $this
->createMock(ContainerInterface::class);
$container
->expects($this
->once())
->method('get')
->with('currency.locale_resolver')
->willReturn($this->localeResolver);
$configuration = array();
$plugin_id = $this
->randomMachineName();
$plugin_definition = array();
$formatter = Intl::create($container, $configuration, $plugin_id, $plugin_definition);
$this
->assertInstanceOf(Intl::class, $formatter);
}