TourPluginTest.php in Drupal 10
File
core/modules/tour/tests/src/Kernel/TourPluginTest.php
View source
<?php
namespace Drupal\Tests\tour\Kernel;
use Drupal\KernelTests\KernelTestBase;
class TourPluginTest extends KernelTestBase {
protected static $modules = [
'tour',
];
protected $pluginManager;
protected function setUp() : void {
parent::setUp();
$this
->installConfig([
'tour',
]);
$this->pluginManager = $this->container
->get('plugin.manager.tour.tip');
}
public function testTourPlugins() {
$this
->assertCount(1, $this->pluginManager
->getDefinitions(), 'Only tour plugins for the enabled modules were returned.');
}
}