You are here

public function WidgetPluginManagerTest::testConstruct in Facets 8

Tests plugin manager constructor.

File

tests/src/Unit/Widget/WidgetPluginManagerTest.php, line 93

Class

WidgetPluginManagerTest
Unit test for widget plugin manager.

Namespace

Drupal\Tests\facets\Unit\Widget

Code

public function testConstruct() {
  $namespaces = new ArrayObject();
  $sut = new WidgetPluginManager($namespaces, $this->cache, $this->moduleHandler, $this->translator);
  $this
    ->assertInstanceOf(WidgetPluginManager::class, $sut);
}