function TourPluginTest::testTourPlugins

Same name in other branches
  1. 9 core/modules/tour/tests/src/Kernel/TourPluginTest.php \Drupal\Tests\tour\Kernel\TourPluginTest::testTourPlugins()
  2. 10 core/modules/tour/tests/src/Kernel/TourPluginTest.php \Drupal\Tests\tour\Kernel\TourPluginTest::testTourPlugins()
  3. 11.x core/modules/tour/tests/src/Kernel/TourPluginTest.php \Drupal\Tests\tour\Kernel\TourPluginTest::testTourPlugins()

Test tour plugins.

File

core/modules/tour/tests/src/Kernel/TourPluginTest.php, line 38

Class

TourPluginTest
Tests the functionality of tour plugins.

Namespace

Drupal\Tests\tour\Kernel

Code

public function testTourPlugins() {
    $this->assertCount(1, $this->pluginManager
        ->getDefinitions(), 'Only tour plugins for the enabled modules were returned.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.