public function FacetSourcePluginManagerTest::testGetDefinitions in Facets 8
Tests plugin manager's getDefinitions method.
File
- tests/
src/ Unit/ FacetSource/ FacetSourcePluginManagerTest.php, line 93
Class
- FacetSourcePluginManagerTest
- Unit test for plugin manager.
Namespace
Drupal\Tests\facets\Unit\FacetSourceCode
public function testGetDefinitions() {
$definitions = [
'foo' => [
'id' => 'foo_bar',
'label' => 'Foo bar',
'description' => 'test',
'display_id' => 'foo',
],
];
$this->discovery
->expects($this
->once())
->method('getDefinitions')
->willReturn($definitions);
$this
->assertSame($definitions, $this->sut
->getDefinitions());
}