TourPluginTest.php in Drupal 8
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 {
public static $modules = [
'tour',
];
protected $pluginManager;
protected function setUp() {
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.');
}
}