summaryrefslogtreecommitdiffstats
path: root/tests/Integration/Fixtures/Fixture.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-07-23 21:24:54 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-07-23 21:24:54 +0200
commit004fcbbcc7609ca83807f2e38967ef54f469bf72 (patch)
tree49eb99b4ea92b2045793fc567f719b31ec7f9042 /tests/Integration/Fixtures/Fixture.php
parent60abc0ed4438c9b6fda245b0dc33cb483bc2aeaf (diff)
Move to new directory structure
Diffstat (limited to 'tests/Integration/Fixtures/Fixture.php')
-rw-r--r--tests/Integration/Fixtures/Fixture.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/Integration/Fixtures/Fixture.php b/tests/Integration/Fixtures/Fixture.php
new file mode 100644
index 000000000..a5bceda17
--- /dev/null
+++ b/tests/Integration/Fixtures/Fixture.php
@@ -0,0 +1,25 @@
+<?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;
+
+
+trait Fixture {
+
+ protected function fillDefaults(array $defaults=[]) {
+ foreach ($defaults as $key => $value) {
+ $method = 'set' . ucfirst($key);
+ $this->$method($value);
+ }
+ }
+
+} \ No newline at end of file