Update to Drupal 8.1.1. For more information, see https://www.drupal.org/node/2718713
This commit is contained in:
parent
c0a0d5a94c
commit
9eae24d844
669 changed files with 3873 additions and 1553 deletions
42
core/modules/tour/tests/src/Kernel/TourPluginTest.php
Normal file
42
core/modules/tour/tests/src/Kernel/TourPluginTest.php
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\Tests\tour\Kernel;
|
||||
|
||||
use Drupal\KernelTests\KernelTestBase;
|
||||
|
||||
/**
|
||||
* Tests the functionality of tour plugins.
|
||||
*
|
||||
* @group tour
|
||||
*/
|
||||
class TourPluginTest extends KernelTestBase {
|
||||
|
||||
/**
|
||||
* Modules to enable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $modules = array('tour');
|
||||
|
||||
/**
|
||||
* Stores the tour plugin manager.
|
||||
*
|
||||
* @var \Drupal\tour\TipPluginManager
|
||||
*/
|
||||
protected $pluginManager;
|
||||
|
||||
protected function setUp() {
|
||||
parent::setUp();
|
||||
|
||||
$this->installConfig(array('tour'));
|
||||
$this->pluginManager = $this->container->get('plugin.manager.tour.tip');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test tour plugins.
|
||||
*/
|
||||
public function testTourPlugins() {
|
||||
$this->assertIdentical(count($this->pluginManager->getDefinitions()), 1, 'Only tour plugins for the enabled modules were returned.');
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue