function EnableCurrencyTest::testCreate in Currency 8.3
@covers ::create @covers ::__construct
File
- tests/
src/ Unit/ Controller/ EnableCurrencyTest.php, line 46
Class
- EnableCurrencyTest
- @coversDefaultClass \Drupal\currency\Controller\EnableCurrency
Namespace
Drupal\Tests\currency\Unit\ControllerCode
function testCreate() {
$container = $this
->createMock(ContainerInterface::class);
$map = array(
array(
'url_generator',
ContainerInterface::EXCEPTION_ON_INVALID_REFERENCE,
$this->urlGenerator,
),
);
$container
->expects($this
->any())
->method('get')
->willReturnMap($map);
$sut = EnableCurrency::create($container);
$this
->assertInstanceOf(EnableCurrency::class, $sut);
}