From 5395685b0556921bc87ccc7e4076caabd16f0bcf Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 6 Nov 2014 14:05:38 +0100 Subject: add fixtures import --- tests/integration/fixtures/feeds.json | 88 +++++++++++++++++++++++++++++++++ tests/integration/fixtures/folders.json | 17 +++++++ tests/integration/fixtures/items.json | 5 ++ 3 files changed, 110 insertions(+) create mode 100644 tests/integration/fixtures/feeds.json create mode 100644 tests/integration/fixtures/folders.json create mode 100644 tests/integration/fixtures/items.json (limited to 'tests/integration/fixtures') diff --git a/tests/integration/fixtures/feeds.json b/tests/integration/fixtures/feeds.json new file mode 100644 index 000000000..c3848bd78 --- /dev/null +++ b/tests/integration/fixtures/feeds.json @@ -0,0 +1,88 @@ +{ + "first folder": [ + { + "title": "first feed", + "folderName": "first folder", + "url": "http://google.de", + "deletedAt": 0, + "location": "http://feed.com/rss", + "faviconLink": "Http://feed.com/favicon.ico", + "added": 3000, + "link": "http://feed.com/rss", + "preventUpdate": false, + "articlesPerUpdate": 40, + "lastModified": "", + "etag": "" + }, + { + "title": "second feed", + "folderName": "first folder", + "url": "http://golem.de", + "deletedAt": 0, + "location": "http://feed.com/rss", + "faviconLink": "Http://feed.com/favicon.ico", + "added": 3000, + "link": "http://feed.com/rss", + "preventUpdate": false, + "articlesPerUpdate": 40, + "lastModified": "", + "etag": "" + } + ], + "second folder": [ + { + "title": "third feed", + "url": "http://heise.de", + "deletedAt": 0, + "location": "http://feed.com/rss", + "faviconLink": "Http://feed.com/favicon.ico", + "added": 3000, + "link": "http://feed.com/rss", + "preventUpdate": false, + "articlesPerUpdate": 40, + "lastModified": "", + "etag": "" + }, + { + "title": "fifth feed", + "url": "http://gremlins.de", + "deletedAt": 999999999, + "location": "http://feed.com/rss", + "faviconLink": "Http://feed.com/favicon.ico", + "added": 3000, + "link": "http://feed.com/rss", + "preventUpdate": false, + "articlesPerUpdate": 40, + "lastModified": "", + "etag": "" + } + ], + "no folder": [{ + "title": "fourth feed", + "url": "http://blog.fefe.de", + "deletedAt": 0, + "location": "http://feed.com/rss", + "faviconLink": "Http://feed.com/favicon.ico", + "added": 3000, + "link": "http://feed.com/rss", + "preventUpdate": false, + "articlesPerUpdate": 40, + "lastModified": "", + "etag": "" + } + ], + "third folder": [{ + "title": "fifth feed", + "url": "http://prolinux.de", + "deletedAt": 0, + "location": "http://feed.com/rss", + "faviconLink": "Http://feed.com/favicon.ico", + "added": 3000, + "link": "http://feed.com/rss", + "preventUpdate": false, + "articlesPerUpdate": 40, + "lastModified": "", + "etag": "" + } + ] +} \ No newline at end of file diff --git a/tests/integration/fixtures/folders.json b/tests/integration/fixtures/folders.json new file mode 100644 index 000000000..3c79ef52b --- /dev/null +++ b/tests/integration/fixtures/folders.json @@ -0,0 +1,17 @@ +[ + { + "name": "first folder", + "deletedAt": 0, + "opened": true + }, + { + "name": "second folder", + "deletedAt": 0, + "opened": false + }, + { + "name": "third folder", + "deletedAt": 9999999999, + "opened": true + } +] \ No newline at end of file diff --git a/tests/integration/fixtures/items.json b/tests/integration/fixtures/items.json new file mode 100644 index 000000000..56c70edbe --- /dev/null +++ b/tests/integration/fixtures/items.json @@ -0,0 +1,5 @@ +{ + "first feed": [ + + ] +} \ No newline at end of file -- cgit v1.2.3