diff options
Diffstat (limited to 'tests/integration/fixtures/fixture.php')
-rw-r--r-- | tests/integration/fixtures/fixture.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/integration/fixtures/fixture.php b/tests/integration/fixtures/fixture.php new file mode 100644 index 000000000..52015ebc2 --- /dev/null +++ b/tests/integration/fixtures/fixture.php @@ -0,0 +1,26 @@ +<?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 { + + public function fillDefaults(array $defaults=[]) { + foreach ($defaults as $key => $value) { + $method = 'set' . ucfirst($key); + $this->$method($value); + } + $this->resetUpdatedFields(); + } + +}
\ No newline at end of file |