diff --git a/lib/Drupal/tour_ui/Tests/TourUITest.php b/lib/Drupal/tour_ui/Tests/TourUITest.php index 94207d1..9e9da15 100644 --- a/lib/Drupal/tour_ui/Tests/TourUITest.php +++ b/lib/Drupal/tour_ui/Tests/TourUITest.php @@ -59,8 +59,8 @@ class TourUITest extends WebTestBase { $this->assertIdentical((string) $elements[0], '/tour-test-1'); // The fourth column contains the number of tips. $elements = $this->xpath('//table/tbody/tr[contains(@class, :class)]/td[4]', array(':class' => 'tour-test')); - $this->assertIdentical((string) $elements[0], '1', '1 tip'); - $this->assertIdentical((string) $elements[1], '2', '2 tips'); + $this->assertIdentical((string) $elements[0], '1', 'Core tour_test/config/tour-test-2 has 1 tip'); + $this->assertIdentical((string) $elements[1], '3', 'Core tour_test/config/tour-test-1 has 3 tips'); } /** @@ -71,6 +71,7 @@ class TourUITest extends WebTestBase { $edit = array( 'label' => 'a' . $this->randomString(), 'id' => strtolower($this->randomName()), + 'module' => strtolower($this->randomName()), ); $this->drupalPost('admin/config/user-interface/tour/add', $edit, t('Save')); $this->assertRaw(t('The %tour tour has been created.', array('%tour' => $edit['label']))); @@ -141,6 +142,7 @@ class TourUITest extends WebTestBase { $edit = array( 'label' => 'a' . $this->randomString(), 'id' => strtolower($this->randomName()), + 'module' => $this->randomString(), 'paths' => '', ); $this->drupalPost('admin/config/user-interface/tour/add', $edit, t('Save'));