public function WidgetPluginManagerTest::testGetDefinitions in Facets 8
Tests plugin manager's getDefinitions method.
File
- tests/
src/ Unit/ Widget/ WidgetPluginManagerTest.php, line 102
Class
- WidgetPluginManagerTest
- Unit test for widget plugin manager.
Namespace
Drupal\Tests\facets\Unit\WidgetCode
public function testGetDefinitions() {
$definitions = [
'foo' => [
'label' => $this
->randomMachineName(),
],
];
$this->discovery
->expects($this
->once())
->method('getDefinitions')
->willReturn($definitions);
$this
->assertSame($definitions, $this->sut
->getDefinitions());
}