diff options
Diffstat (limited to 'tests/Integration/Fixtures/Fixture.php')
-rw-r--r-- | tests/Integration/Fixtures/Fixture.php | 25 |
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 |