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:
parent
9eae24d844
commit
28556d630e
1322 changed files with 6699 additions and 2064 deletions
|
@ -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.'));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -141,4 +141,5 @@ interface ItemInterface extends ContentEntityInterface {
|
|||
* The called feed item entity.
|
||||
*/
|
||||
public function setGuid($guid);
|
||||
|
||||
}
|
||||
|
|
|
@ -35,4 +35,5 @@ class AggregatorXSSFormatter extends FormatterBase {
|
|||
}
|
||||
return $elements;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -117,4 +117,5 @@ class DefaultFetcher implements FetcherInterface, ContainerFactoryPluginInterfac
|
|||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -91,4 +91,5 @@ class AddFeedTest extends AggregatorTestBase {
|
|||
$this->deleteFeed($feed);
|
||||
$this->deleteFeed($feed_2);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -370,4 +370,5 @@ EOF;
|
|||
))
|
||||
->save();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -36,4 +36,5 @@ class DeleteFeedItemTest extends AggregatorTestBase {
|
|||
$this->deleteFeed($feed);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -40,4 +40,5 @@ class FeedFetcherPluginTest extends AggregatorTestBase {
|
|||
// Fetch should fail due to feed name.
|
||||
$this->assertTrue(empty($feed->items));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -81,4 +81,5 @@ class FeedLanguageTest extends AggregatorTestBase {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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())));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -63,4 +63,5 @@ class FeedProcessorPluginTest extends AggregatorTestBase {
|
|||
// Make sure its refresh rate doubled.
|
||||
$this->assertEqual($feed->getRefreshRate(), 3600);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -120,4 +120,5 @@ class ImportOpmlTest extends AggregatorTestBase {
|
|||
$this->validateImportFormFields();
|
||||
$this->submitImportForm();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -66,4 +66,5 @@ class UpdateFeedItemTest extends AggregatorTestBase {
|
|||
$this->updateFeedItems($feed);
|
||||
$this->assertResponse(200);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -42,4 +42,5 @@ class UpdateFeedTest extends AggregatorTestBase {
|
|||
$this->deleteFeed($feed);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue