summaryrefslogtreecommitdiffstats
path: root/tests/integration/fixtures
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-04-06 23:43:27 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-04-06 23:43:43 +0200
commit65d28653ae1a1d2a7680ccfa694dbb7e2d4d750f (patch)
tree0e005dc5c41e7ba4c2dec602cea4d6e8aa2a4e65 /tests/integration/fixtures
parent4f8b81c7a353b5704d3a1d7d438077ac06dfdb4d (diff)
try marking same items as read if they contain the same content
Diffstat (limited to 'tests/integration/fixtures')
-rw-r--r--tests/integration/fixtures/data/readitem.php33
-rw-r--r--tests/integration/fixtures/itemfixture.php3
2 files changed, 34 insertions, 2 deletions
diff --git a/tests/integration/fixtures/data/readitem.php b/tests/integration/fixtures/data/readitem.php
new file mode 100644
index 000000000..7e3d68fad
--- /dev/null
+++ b/tests/integration/fixtures/data/readitem.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * ownCloud - News
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @copyright Bernhard Posselt 2015
+ */
+
+return [
+ 'feeds' => [
+ [
+ 'title' => 'john feed',
+ 'userId' => 'john',
+ 'items' => [
+ ['title' => 'blubb', 'status' => 2],
+ ['title' => 'blubb', 'status' => 2]
+ ]
+ ],
+ [
+ 'title' => 'test feed',
+ 'userId' => 'test',
+ 'items' => [
+ ['title' => 'blubb', 'status' => 2],
+ ['title' => 'blubbs', 'status' => 2],
+ ['title' => 'blubb', 'status' => 2],
+ ['title' => 'blubb', 'status' => 2]
+ ]
+ ]
+ ]
+];
diff --git a/tests/integration/fixtures/itemfixture.php b/tests/integration/fixtures/itemfixture.php
index af074718f..9e6e07fe2 100644
--- a/tests/integration/fixtures/itemfixture.php
+++ b/tests/integration/fixtures/itemfixture.php
@@ -42,9 +42,8 @@ class ItemFixture extends Item {
$defaults['guidHash'] = $defaults['guid'];
}
- $this->generateSearchIndex();
-
$this->fillDefaults($defaults);
+ $this->generateSearchIndex();
}
}