You are here

function CurrencyLocaleAccessControlHandlerTest::testCreateInstance in Currency 8.3

@covers ::createInstance @covers ::__construct

File

tests/src/Unit/Entity/CurrencyLocale/CurrencyLocaleAccessControlHandlerTest.php, line 79

Class

CurrencyLocaleAccessControlHandlerTest
@coversDefaultClass Drupal\currency\Entity\CurrencyLocale\CurrencyLocaleAccessControlHandler

Namespace

Drupal\Tests\currency\Unit\Entity\CurrencyLocale

Code

function testCreateInstance() {
  $container = $this
    ->createMock(ContainerInterface::class);
  $container
    ->expects($this
    ->once())
    ->method('get')
    ->with('module_handler')
    ->willReturn($this->moduleHandler);
  $sut = CurrencyLocaleAccessControlHandler::createInstance($container, $this->entityType);
  $this
    ->assertInstanceOf(CurrencyLocaleAccessControlHandler::class, $sut);
}