summaryrefslogtreecommitdiffstats
path: root/tests/Integration/Fixtures/FolderFixture.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Integration/Fixtures/FolderFixture.php')
-rw-r--r--tests/Integration/Fixtures/FolderFixture.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/Integration/Fixtures/FolderFixture.php b/tests/Integration/Fixtures/FolderFixture.php
new file mode 100644
index 000000000..2dc6b3a44
--- /dev/null
+++ b/tests/Integration/Fixtures/FolderFixture.php
@@ -0,0 +1,35 @@
+<?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
+ */
+
+
+namespace OCA\News\Tests\Integration\Fixtures;
+
+
+use OCA\News\Db\Folder;
+
+class FolderFixture extends Folder {
+ use Fixture;
+
+ public function __construct(array $defaults=[]) {
+ parent::__construct();
+ $defaults = array_merge([
+ 'parentId' => 0,
+ 'name' => 'folder',
+ 'userId' => 'test',
+ 'opened' => true,
+ 'deletedAt' => 0,
+ 'lastModified' => 9
+ ], $defaults);
+ unset($defaults['feeds']);
+ $this->fillDefaults($defaults);
+ }
+
+} \ No newline at end of file