Version 1
[yaffs-website] / vendor / drush / drush / tests / resources / queue_script-D8.php
diff --git a/vendor/drush/drush/tests/resources/queue_script-D8.php b/vendor/drush/drush/tests/resources/queue_script-D8.php
new file mode 100644 (file)
index 0000000..679a2a3
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+
+use Drupal\aggregator\Entity\Feed;
+
+// Create a new feed.
+$feed = Feed::create(array(
+  'title' => 'test',
+  'url' => 'http://drupal.org/project/issues/rss/drupal?categories=All',
+  'refresh' => 3600,
+));
+$feed->save();
+
+// Let cron call QueueInterface::createItem() for us.
+aggregator_cron();