Plugin
Best way to functional test any plugin is to create a test module that implements the plugin. This would provide flexibility as well as full coverage of plugin handlers, forms and access.
Base class
PluginTestBase provides additional APIs on top of KernelTestBase. For example, TestPluginManager.
Reference
- block_test module
- media_test_source module
- aggregator_test module