comparison core/modules/tour/tests/src/Kernel/TourPluginTest.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace Drupal\Tests\tour\Kernel;
4
5 use Drupal\KernelTests\KernelTestBase;
6
7 /**
8 * Tests the functionality of tour plugins.
9 *
10 * @group tour
11 */
12 class TourPluginTest extends KernelTestBase {
13
14 /**
15 * Modules to enable.
16 *
17 * @var array
18 */
19 public static $modules = ['tour'];
20
21 /**
22 * Stores the tour plugin manager.
23 *
24 * @var \Drupal\tour\TipPluginManager
25 */
26 protected $pluginManager;
27
28 protected function setUp() {
29 parent::setUp();
30
31 $this->installConfig(['tour']);
32 $this->pluginManager = $this->container->get('plugin.manager.tour.tip');
33 }
34
35 /**
36 * Test tour plugins.
37 */
38 public function testTourPlugins() {
39 $this->assertIdentical(count($this->pluginManager->getDefinitions()), 1, 'Only tour plugins for the enabled modules were returned.');
40 }
41
42 }