diff --git a/core/modules/tour/lib/Drupal/tour/Tests/TourTest.php b/core/modules/tour/lib/Drupal/tour/Tests/TourTest.php index 7aaa71e..061d540 100644 --- a/core/modules/tour/lib/Drupal/tour/Tests/TourTest.php +++ b/core/modules/tour/lib/Drupal/tour/Tests/TourTest.php @@ -48,6 +48,12 @@ public function testTourFunctionality() { ':text' => 'The first tip', )); $this->assertEqual(count($elements), 1, 'Found English variant of tip 1.'); + + // Test the TourTestBase class assertTourTips() method. + $tips = array(); + $tips[] = array('data-id' => 'tour-test-1'); + $tips[] = array('data-class' => 'tour-test-5'); + $this->assertTourTips($tips); $this->assertTourTips(); $elements = $this->xpath('//li[@data-id=:data_id and @class=:classes and ./p//a[@href=:href and contains(., :text)]]', array( diff --git a/core/modules/tour/tests/tour_test/lib/Drupal/tour_test/Controller/TourTestController.php b/core/modules/tour/tests/tour_test/lib/Drupal/tour_test/Controller/TourTestController.php index 62aa705..02a38a8 100644 --- a/core/modules/tour/tests/tour_test/lib/Drupal/tour_test/Controller/TourTestController.php +++ b/core/modules/tour/tests/tour_test/lib/Drupal/tour_test/Controller/TourTestController.php @@ -47,6 +47,13 @@ public function tourTest1() { ), '#children' => t('Tip created later?'), ), + 'tip-5' => array( + '#type' => 'container', + '#attributes' => array( + 'class' => 'tour-test-5', + ), + '#children' => t('Tip created later?'), + ), 'code-tip-1' => array( '#type' => 'container', '#attributes' => array(