From bde168df355233e376afe9cb413c3f959f175ed2 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sun, 17 Jan 2016 18:50:54 +0100 Subject: more fixes --- tests/integration/fixtures/data/default.php | 24 +++++++++++++----------- tests/integration/fixtures/feedfixture.php | 12 ++++++------ tests/integration/fixtures/itemfixture.php | 2 +- 3 files changed, 20 insertions(+), 18 deletions(-) (limited to 'tests/integration/fixtures') diff --git a/tests/integration/fixtures/data/default.php b/tests/integration/fixtures/data/default.php index 5fc0565f3..d1383c3f7 100644 --- a/tests/integration/fixtures/data/default.php +++ b/tests/integration/fixtures/data/default.php @@ -17,14 +17,15 @@ return [ [ 'title' => 'first feed', 'url' => 'http://google.de', + 'articlesPerUpdate' => 1, 'items' => [ - ['title' => 'a title1'], - ['title' => 'a title2', 'starred' => true], - ['title' => 'a title3', 'starred' => true], - ['title' => 'del1', 'read' => true], - ['title' => 'del2', 'read' => true], - ['title' => 'del3', 'read' => true], - ['title' => 'del4', 'read' => true] + ['title' => 'a title1', 'guid' => 'abc'], + ['title' => 'a title2', 'status' => 4, 'guid' => 'def'], + ['title' => 'a title3', 'status' => 6, 'guid' => 'gih'], + ['title' => 'del1', 'status' => 0], + ['title' => 'del2', 'status' => 0], + ['title' => 'del3', 'status' => 0], + ['title' => 'del4', 'status' => 0] ] ], [ @@ -36,17 +37,18 @@ return [ ], [ 'name' => 'second folder', + 'opened' => false, 'feeds' => [ [ 'title' => 'third feed', 'url' => 'http://heise.de', - 'items' => [['title' => 'the title9']] + 'items' => [['title' => 'a title9']] ], [ 'title' => 'sixth feed', 'url' => 'http://gremlins.de', 'deletedAt' => 999999999, - 'items' => [['title' => 'not found feed']] + 'items' => [['title' => 'not found feed', 'guid' => 'not found']] ] ], ], @@ -57,7 +59,7 @@ return [ [ 'title' => 'fifth feed', 'url' => 'http://prolinux.de', - 'items' => [['title' => 'not found folder']] + 'items' => [['title' => 'not found folder', 'guid' => 'not found']] ] ], ] @@ -67,7 +69,7 @@ return [ 'title' => 'fourth feed', 'url' => 'http://blog.fefe.de', 'items' => [ - ['title' => 'no folder', 'read' => true] + ['title' => 'no folder', 'status' => 0] ] ] ] diff --git a/tests/integration/fixtures/feedfixture.php b/tests/integration/fixtures/feedfixture.php index 5394ebf6b..cc8e2e159 100644 --- a/tests/integration/fixtures/feedfixture.php +++ b/tests/integration/fixtures/feedfixture.php @@ -26,22 +26,22 @@ class FeedFixture extends Feed { 'urlHash' => 'urlHash', 'url' => 'http://the.url.com', 'title' => 'title', - 'faviconLink' => 'http://the.faviconLink.com', - 'added' => 9, + 'faviconLink' => 'http://feed.com/favicon.ico', + 'added' => 3000, 'folderId' => 0, - 'link' => 'http://thelink.com', + 'link' => 'http://feed.com/rss', 'preventUpdate' => false, 'deletedAt' => 0, - 'articlesPerUpdate' => 50, + 'articlesPerUpdate' => 40, 'lastModified' => 10, 'etag' => '', - 'location' => 'http://thefeed.com', + 'location' => 'http://feed.com/rss', 'ordering' => 0, 'fullTextEnabled' => false, 'pinned' => false, 'updateMode' => 0, 'updateErrorCount' => 0, - 'lastUpdateError' => 'lastUpdateError', + 'lastUpdateError' => '', ], $defaults); unset($defaults['items']); $this->fillDefaults($defaults); diff --git a/tests/integration/fixtures/itemfixture.php b/tests/integration/fixtures/itemfixture.php index 8914773dc..af074718f 100644 --- a/tests/integration/fixtures/itemfixture.php +++ b/tests/integration/fixtures/itemfixture.php @@ -23,7 +23,7 @@ class ItemFixture extends Item { $defaults = array_merge([ 'url' => 'http://google.de', 'title' => 'title', - 'author' => 'author', + 'author' => 'my author', 'pubDate' => 2323, 'body' => 'this is a body', 'enclosureMime' => 'video/mpeg', -- cgit v1.2.3