public function EntityPrintPluginManagerTest::testGetDisabledDefinitions in Entity Print 8.2
Test disabled definition discovery.
@covers ::getDisabledDefinitions @dataProvider getDisabledDefinitionsDataProvider
File
- tests/
src/ Kernel/ EntityPrintPluginManagerTest.php, line 78
Class
- EntityPrintPluginManagerTest
- @coversDefaultClass \Drupal\entity_print\Plugin\EntityPrintPluginManager @group entity_print
Namespace
Drupal\Tests\entity_print\KernelCode
public function testGetDisabledDefinitions($filter, $expected_definitions) {
$disabled_definitions = array_keys($this->pluginManager
->getDisabledDefinitions($filter));
sort($disabled_definitions);
sort($expected_definitions);
$this
->assertSame($disabled_definitions, $expected_definitions);
}