3 namespace Drupal\Tests\tour\Kernel;
5 use Drupal\KernelTests\KernelTestBase;
8 * Tests the functionality of tour plugins.
12 class TourPluginTest extends KernelTestBase {
19 public static $modules = ['tour'];
22 * Stores the tour plugin manager.
24 * @var \Drupal\tour\TipPluginManager
26 protected $pluginManager;
28 protected function setUp() {
31 $this->installConfig(['tour']);
32 $this->pluginManager = $this->container->get('plugin.manager.tour.tip');
38 public function testTourPlugins() {
39 $this->assertIdentical(count($this->pluginManager->getDefinitions()), 1, 'Only tour plugins for the enabled modules were returned.');