Update to Drupal 8.1.2. For more information, see https://www.drupal.org/project/drupal/releases/8.1.2

This commit is contained in:
Pantheon Automation 2016-06-02 15:56:09 -07:00 committed by Greg Anderson
parent 9eae24d844
commit 28556d630e
1322 changed files with 6699 additions and 2064 deletions

View file

@ -153,7 +153,6 @@ class ViewsUIController extends ControllerBase {
* @return \Drupal\Core\Ajax\AjaxResponse|\Symfony\Component\HttpFoundation\RedirectResponse
* Either returns a rebuilt listing page as an AJAX response, or redirects
* back to the listing page.
*
*/
public function ajaxOperation(ViewEntityInterface $view, $op, Request $request) {
// Perform the operation.

View file

@ -43,7 +43,7 @@ class ArgumentValidatorTest extends UITestBase {
* Saves the test_argument view with changes made to the argument handler
* both with and without specify_validation turned on.
*
* @param boolean $specify_validation
* @param bool $specify_validation
*/
protected function saveArgumentHandlerWithValidationOptions($specify_validation) {
$options = array(
@ -53,4 +53,5 @@ class ArgumentValidatorTest extends UITestBase {
$this->drupalPostForm('admin/structure/views/nojs/handler/test_argument/default/argument/id', $options, t('Apply'));
$this->drupalPostForm('admin/structure/views/view/test_argument', array(), t('Save'));
}
}

View file

@ -57,4 +57,5 @@ class DisplayAttachmentTest extends UITestBase {
$view->initDisplay();
$this->assertEqual(array_keys($view->displayHandlers->get('attachment_1')->getOption('displays')), array('default', 'page_1'), 'The attached displays got saved as expected');
}
}

View file

@ -35,7 +35,7 @@ class DisplayCRUDTest extends UITestBase {
$settings['page[create]'] = FALSE;
$view = $this->randomView($settings);
$path_prefix = 'admin/structure/views/view/' . $view['id'] .'/edit';
$path_prefix = 'admin/structure/views/view/' . $view['id'] . '/edit';
$this->drupalGet($path_prefix);
// Add a new display.
@ -54,7 +54,7 @@ class DisplayCRUDTest extends UITestBase {
*/
public function testRemoveDisplay() {
$view = $this->randomView();
$path_prefix = 'admin/structure/views/view/' . $view['id'] .'/edit';
$path_prefix = 'admin/structure/views/view/' . $view['id'] . '/edit';
$this->drupalGet($path_prefix . '/default');
$this->assertNoFieldById('edit-displays-settings-settings-content-tab-content-details-top-actions-delete', 'Delete Page', 'Make sure there is no delete button on the default display.');
@ -97,7 +97,7 @@ class DisplayCRUDTest extends UITestBase {
*/
public function testDuplicateDisplay() {
$view = $this->randomView();
$path_prefix = 'admin/structure/views/view/' . $view['id'] .'/edit';
$path_prefix = 'admin/structure/views/view/' . $view['id'] . '/edit';
$path = $view['page[path]'];
$this->drupalGet($path_prefix);

View file

@ -89,7 +89,7 @@ class DisplayTest extends UITestBase {
*/
public function testDisableDisplay() {
$view = $this->randomView();
$path_prefix = 'admin/structure/views/view/' . $view['id'] .'/edit';
$path_prefix = 'admin/structure/views/view/' . $view['id'] . '/edit';
$this->drupalGet($path_prefix);
$this->assertFalse($this->xpath('//div[contains(@class, :class)]', array(':class' => 'views-display-disabled')), 'Make sure the disabled display css class does not appear after initial adding of a view.');

View file

@ -39,4 +39,5 @@ class DuplicateTest extends UITestBase {
// Assert that the page title is correctly displayed.
$this->assertText($view['label']);
}
}

View file

@ -169,4 +169,5 @@ class ExposedFormUITest extends UITestBase {
$this->assertEqual($display['display_options']['sorts']['created']['expose'], ['label' => $edit['options[expose][label]']]);
$this->assertEqual($display['display_options']['sorts']['created']['order'], 'DESC');
}
}

View file

@ -119,4 +119,5 @@ class FilterUITest extends ViewTestBase {
$this->drupalPostForm($path, $edit, t('Apply'));
$this->assertText('This identifier has illegal characters.');
}
}

View file

@ -276,6 +276,7 @@ class HandlerTest extends UITestBase {
*/
public function assertNoDuplicateField($field_name, $entity_type) {
$elements = $this->xpath('//td[.=:entity_type]/preceding-sibling::td[@class="title" and .=:title]', [':title' => $field_name, ':entity_type' => $entity_type]);
$this->assertEqual(1, count($elements), $field_name . ' appears just once in ' . $entity_type . '.');
$this->assertEqual(1, count($elements), $field_name . ' appears just once in ' . $entity_type . '.');
}
}

View file

@ -38,7 +38,7 @@ class NewViewConfigSchemaTest extends WebTestBase {
'standard:aggregator_feed',
'standard:aggregator_item',
);
foreach($wizards as $wizard_key) {
foreach ($wizards as $wizard_key) {
$edit = array();
$edit['label'] = $this->randomString();
$edit['id'] = strtolower($this->randomMachineName());

View file

@ -87,5 +87,4 @@ abstract class UITestBase extends ViewTestBase {
return parent::drupalGet($path, $options, $headers);
}
}

View file

@ -1071,7 +1071,7 @@ class ViewEditForm extends ViewFormBase {
'type' => $type,
'id' => $id,
), array('attributes' => $link_attributes)));
$build['fields'][$id]['#class'][] = Html::cleanCssIdentifier($display['id']. '-' . $type . '-' . $id);
$build['fields'][$id]['#class'][] = Html::cleanCssIdentifier($display['id'] . '-' . $type . '-' . $id);
if ($executable->display_handler->useGroupBy() && $handler->usesGroupBy()) {
$build['fields'][$id]['#settings_links'][] = $this->l(SafeMarkup::format('<span class="label">@text</span>', array('@text' => $this->t('Aggregation settings'))), new Url('views_ui.form_handler_group', array(