diff options
Diffstat (limited to 'tests/integration/fixtures')
-rw-r--r-- | tests/integration/fixtures/data/readitem.php | 33 | ||||
-rw-r--r-- | tests/integration/fixtures/itemfixture.php | 3 |
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(); } } |