function DisableCurrencyTest::testCreate in Currency 8.3
@covers ::create @covers ::__construct
File
- tests/
src/ Unit/ Controller/ DisableCurrencyTest.php, line 46
Class
- DisableCurrencyTest
- @coversDefaultClass \Drupal\currency\Controller\DisableCurrency
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 = DisableCurrency::create($container);
$this
->assertInstanceOf(DisableCurrency::class, $sut);
}