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

@ -99,8 +99,8 @@ class OpmlFeedAdd extends FormBase {
*/
public function validateForm(array &$form, FormStateInterface $form_state) {
// If both fields are empty or filled, cancel.
$file_upload = $this->getRequest()->files->get('files[upload]', NULL, TRUE);
if ($form_state->isValueEmpty('remote') == empty($file_upload)) {
$all_files = $this->getRequest()->files->get('files', []);
if ($form_state->isValueEmpty('remote') == empty($all_files['upload'])) {
$form_state->setErrorByName('remote', $this->t('<em>Either</em> upload a file or enter a URL.'));
}
}

View file

@ -141,4 +141,5 @@ interface ItemInterface extends ContentEntityInterface {
* The called feed item entity.
*/
public function setGuid($guid);
}

View file

@ -35,4 +35,5 @@ class AggregatorXSSFormatter extends FormatterBase {
}
return $elements;
}
}

View file

@ -117,4 +117,5 @@ class DefaultFetcher implements FetcherInterface, ContainerFactoryPluginInterfac
return FALSE;
}
}
}

View file

@ -91,4 +91,5 @@ class AddFeedTest extends AggregatorTestBase {
$this->deleteFeed($feed);
$this->deleteFeed($feed_2);
}
}

View file

@ -80,4 +80,5 @@ class AggregatorAdminTest extends AggregatorTestBase {
$count = $this->container->get('entity.manager')->getStorage('aggregator_item')->getItemCount($feed);
$this->assertEqual(\Drupal::translation()->formatPlural($count, '1 item', '@count items'), (string) $result[0]->td[1]);
}
}

View file

@ -41,4 +41,5 @@ class AggregatorCronTest extends AggregatorTestBase {
$this->cronRun();
$this->assertEqual(5, db_query('SELECT COUNT(*) FROM {aggregator_item} WHERE fid = :fid', array(':fid' => $feed->id()))->fetchField());
}
}

View file

@ -370,4 +370,5 @@ EOF;
))
->save();
}
}

View file

@ -36,4 +36,5 @@ class DeleteFeedItemTest extends AggregatorTestBase {
$this->deleteFeed($feed);
}
}
}

View file

@ -59,4 +59,5 @@ class FeedAdminDisplayTest extends AggregatorTestBase {
$this->assertText('ago', 'The non scheduled feed has been updated. It shows "x x ago" as last update.');
$this->assertNoText('left', 'The feed is not scheduled. It does not show a timeframe "x x left" for next update.');
}
}

View file

@ -40,4 +40,5 @@ class FeedFetcherPluginTest extends AggregatorTestBase {
// Fetch should fail due to feed name.
$this->assertTrue(empty($feed->items));
}
}

View file

@ -81,4 +81,5 @@ class FeedLanguageTest extends AggregatorTestBase {
}
}
}
}

View file

@ -107,4 +107,5 @@ class FeedParserTest extends AggregatorTestBase {
$this->clickLink(t('Update items'));
$this->assertRaw(t('The feed from %title seems to be broken because of error', array('%title' => $feed->label())));
}
}

View file

@ -63,4 +63,5 @@ class FeedProcessorPluginTest extends AggregatorTestBase {
// Make sure its refresh rate doubled.
$this->assertEqual($feed->getRefreshRate(), 3600);
}
}

View file

@ -120,4 +120,5 @@ class ImportOpmlTest extends AggregatorTestBase {
$this->validateImportFormFields();
$this->submitImportForm();
}
}

View file

@ -66,4 +66,5 @@ class UpdateFeedItemTest extends AggregatorTestBase {
$this->updateFeedItems($feed);
$this->assertResponse(200);
}
}

View file

@ -42,4 +42,5 @@ class UpdateFeedTest extends AggregatorTestBase {
$this->deleteFeed($feed);
}
}
}