diff options
author | splitt3r <splitt3r@users.noreply.github.com> | 2017-11-10 01:08:00 +0300 |
---|---|---|
committer | splitt3r <splitt3r@users.noreply.github.com> | 2017-11-10 01:08:00 +0300 |
commit | 2ad929a8e7f889d627b43c6045af96759d1f612c (patch) | |
tree | 5fdfaefb9b10b5cbd92f1637b4f0ad413d6259b2 /tests | |
parent | e2c664a8c61b4c9f878466829b0184e6b7b1fe26 (diff) |
Restored missing files
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Factories/NotificationFactory.php | 31 | ||||
-rw-r--r-- | tests/Unit/Factories/TextFactory.php | 31 |
2 files changed, 62 insertions, 0 deletions
diff --git a/tests/Unit/Factories/NotificationFactory.php b/tests/Unit/Factories/NotificationFactory.php new file mode 100644 index 00000000..6db9d60b --- /dev/null +++ b/tests/Unit/Factories/NotificationFactory.php @@ -0,0 +1,31 @@ +<?php +/** + * @copyright Copyright (c) 2017 Kai Schröer <git@schroeer.co> + * + * @author Kai Schröer <git@schroeer.co> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +use League\FactoryMuffin\Faker\Facade as Faker; + +/** + * General factory for the notification model. + */ +$fm->define('OCA\Polls\Db\Notification')->setDefinitions([ + 'userId' => Faker::firstNameMale() +]); diff --git a/tests/Unit/Factories/TextFactory.php b/tests/Unit/Factories/TextFactory.php new file mode 100644 index 00000000..91702af7 --- /dev/null +++ b/tests/Unit/Factories/TextFactory.php @@ -0,0 +1,31 @@ +<?php +/** + * @copyright Copyright (c) 2017 Kai Schröer <git@schroeer.co> + * + * @author Kai Schröer <git@schroeer.co> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +use League\FactoryMuffin\Faker\Facade as Faker; + +/** + * General factory for the text model. + */ +$fm->define('OCA\Polls\Db\Text')->setDefinitions([ + 'text' => Faker::paragraph() +]); |