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