From 985b1d804ac022b0f57b209c3ac3aed06399899a Mon Sep 17 00:00:00 2001 From: nielsonm Date: Sat, 25 Jan 2014 14:58:06 -0800 Subject: [PATCH] Issue #2040861 by nielsonm: Write tour integration for Extend (Modules) admin page. --- core/modules/system/config/tour.tour.extend.yml | 72 ++++++++++++++++++++ .../Drupal/system/Tests/Module/ExtendTourTest.php | 61 +++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 core/modules/system/config/tour.tour.extend.yml create mode 100644 core/modules/system/lib/Drupal/system/Tests/Module/ExtendTourTest.php diff --git a/core/modules/system/config/tour.tour.extend.yml b/core/modules/system/config/tour.tour.extend.yml new file mode 100644 index 0000000..c3bc5ff --- /dev/null +++ b/core/modules/system/config/tour.tour.extend.yml @@ -0,0 +1,72 @@ +id: modules +module: system +label: 'Extend' +langcode: en +routes: + - route_name: system.modules_list +tips: + modules-main: + id: modules-main + plugin: text + label: 'Extending your site (adding modules)' + weight: '1' + body: 'Use this page to add, remove, update or enable modules on your site.' + modules-install: + id: modules-install + plugin: text + label: 'Installing modules' + weight: '2' + body: 'Use this action link to install a module. There are thousands of contributed modules available for download at Drupal.org.' + attributes: + data-class: 'action-links' + modules-search: + id: modules-search + plugin: text + label: 'Finding modules' + weight: '3' + body: 'This list can get quite long so theres a search field to quickly jump you to the one you are looking for.' + attributes: + data-class: 'form-search' + modules-core: + id: modules-core + plugin: text + label: 'Core modules' + weight: '4' + location: top + body: 'This collapsible group contains the core modules in Drupal. Modules you add will be placed in other groups. You can disable core modules if no other modules depend on them.' + attributes: + data-id: 'edit-modules-core' + modules-block: + id: modules-block + plugin: text + label: 'Module information' + weight: '5' + body: 'Use the checkbox to enable or disable modules. Remember to save before leaving the page.' + attributes: + data-id: 'module-block' + modules-open-details: + id: modules-open-details + plugin: text + label: 'Module details' + weight: '6' + body: 'Now click the small arrow beside "Controls the visual building blocks..." then continue the tour.' + attributes: + data-id: 'module-block' + modules-details-expanded: + id: modules-details-expanded + plugin: text + label: 'Module details open' + weight: '7' + body: 'View modules that require this module, modules this module requires and links to help, permissions (who can use the module), and module configuration (not all modules are configurable).' + attributes: + data-id: 'edit-modules-core-block-links-help' + modules-save: + id: modules-save + plugin: text + location: top + label: 'Saving' + weight: '8' + body: 'Don't forget to save your changes.' + attributes: + data-id: 'edit-actions' +status: '1' diff --git a/core/modules/system/lib/Drupal/system/Tests/Module/ExtendTourTest.php b/core/modules/system/lib/Drupal/system/Tests/Module/ExtendTourTest.php new file mode 100644 index 0000000..4074024 --- /dev/null +++ b/core/modules/system/lib/Drupal/system/Tests/Module/ExtendTourTest.php @@ -0,0 +1,61 @@ + 'Extend page tour tests', + 'description' => 'Tests the Extend(module admin) page tour.', + 'group' => 'Tour', + ); + } + + protected function setUp() { + parent::setUp(); + $this->adminUser = $this->drupalCreateUser($permissions); + $this->drupalLogin($this->adminUser); + } + + /** + * Tests extends tour tip availability. + */ + public function testExtendTourTips() { + // Visit the extend page. + $this->drupalGet('admin/modules'); + $this->assertTourTips(); + } +} -- 1.7.10.4