diff --git a/core/modules/views/lib/Drupal/views/Tests/UI/PreviewTest.php b/core/modules/views/lib/Drupal/views/Tests/UI/PreviewTest.php index f9aea91..83de5e7 100644 --- a/core/modules/views/lib/Drupal/views/Tests/UI/PreviewTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/UI/PreviewTest.php @@ -34,7 +34,7 @@ protected function testPreviewContextual() { module_enable(array('contextual')); $this->drupalGet('admin/structure/views/view/test_preview/edit'); $this->assertResponse(200); - $this->drupalPost(NULL, $edit = array(), t('Update preview')); + $this->drupalPost(NULL, $edit = array(), t('Preview')); $elements = $this->xpath('//div[@id="views-live-preview"]//ul[contains(@class, :ul-class)]/li[contains(@class, :li-class)]', array(':ul-class' => 'contextual-links', ':li-class' => 'filter-add')); $this->assertEqual(count($elements), 1, 'The contextual link to add a new field is shown.'); @@ -47,19 +47,19 @@ function testPreviewUI() { $this->drupalGet('admin/structure/views/view/test_preview/edit'); $this->assertResponse(200); - $this->drupalPost(NULL, $edit = array(), t('Update preview')); + $this->drupalPost(NULL, $edit = array(), t('Preview')); $elements = $this->xpath('//div[@class = "view-content"]/div[contains(@class, views-row)]'); $this->assertEqual(count($elements), 5); // Filter just the first result. - $this->drupalPost(NULL, $edit = array('view_args' => '1'), t('Update preview')); + $this->drupalPost(NULL, $edit = array('view_args' => '1'), t('Preview')); $elements = $this->xpath('//div[@class = "view-content"]/div[contains(@class, views-row)]'); $this->assertEqual(count($elements), 1); // Filter for no results. - $this->drupalPost(NULL, $edit = array('view_args' => '100'), t('Update preview')); + $this->drupalPost(NULL, $edit = array('view_args' => '100'), t('Preview')); $elements = $this->xpath('//div[@class = "view-content"]/div[contains(@class, views-row)]'); $this->assertEqual(count($elements), 0); diff --git a/core/modules/views/lib/Drupal/views/Tests/UI/SettingsTest.php b/core/modules/views/lib/Drupal/views/Tests/UI/SettingsTest.php index 28978d6..ef4b2e9 100644 --- a/core/modules/views/lib/Drupal/views/Tests/UI/SettingsTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/UI/SettingsTest.php @@ -100,7 +100,7 @@ function testEditUI() { $view['id'] = strtolower($this->randomName()); $this->drupalPost('admin/structure/views/add', $view, t('Save and edit')); - $this->drupalPost(NULL, array(), t('Update preview')); + $this->drupalPost(NULL, array(), t('Preview')); $xpath = $this->xpath('//div[@class="views-query-info"]/pre'); $this->assertEqual(count($xpath), 0, 'The views sql is hidden.'); @@ -112,7 +112,7 @@ function testEditUI() { $view['id'] = strtolower($this->randomName()); $this->drupalPost('admin/structure/views/add', $view, t('Save and edit')); - $this->drupalPost(NULL, array(), t('Update preview')); + $this->drupalPost(NULL, array(), t('Preview')); $xpath = $this->xpath('//div[@class="views-query-info"]//pre'); $this->assertEqual(count($xpath), 1, 'The views sql is shown.'); $this->assertFalse(strpos($xpath[0], 'db_condition_placeholder') !== FALSE, 'No placeholders are shown in the views sql.');