Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / drush / drush / tests / resources / queue_script.php
diff --git a/vendor/drush/drush/tests/resources/queue_script.php b/vendor/drush/drush/tests/resources/queue_script.php
new file mode 100644 (file)
index 0000000..276b5c2
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+use Drupal\aggregator\Entity\Feed;
+
+// Create a new feed.
+$feed = Feed::create([
+  'title' => 'test',
+  'url' => 'http://drupal.org/project/issues/rss/drupal?categories=All',
+  'uid' => 2,
+  'refresh' => 3600,
+]);
+$feed->save();
+
+// Let cron call QueueInterface::createItem() for us.
+aggregator_cron();