Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2018-05-10 17:24:08 +0300
committerdartcafe <github@dartcafe.de>2018-05-10 17:24:08 +0300
commita9afca8f8a53f8599583251e351594e34d4b7057 (patch)
tree43fb630f1e44a367a2eb5c4c27cb5ab02df3c136 /tests
parentf8dd48def9ffc7c79af565cfbe1dfee869fa7304 (diff)
updates
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Factories/CommentFactory.php2
-rw-r--r--tests/Unit/Factories/EventFactory.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/Unit/Factories/CommentFactory.php b/tests/Unit/Factories/CommentFactory.php
index f4148751..02dc6d5d 100644
--- a/tests/Unit/Factories/CommentFactory.php
+++ b/tests/Unit/Factories/CommentFactory.php
@@ -28,7 +28,7 @@ use League\FactoryMuffin\Faker\Facade as Faker;
*/
$fm->define('OCA\Polls\Db\Comment')->setDefinitions([
'userId' => Faker::firstNameMale(),
- 'dt' => function () {
+ 'dt' => function() {
$date = new DateTime('today');
return $date->format('Y-m-d H:i:s');
},
diff --git a/tests/Unit/Factories/EventFactory.php b/tests/Unit/Factories/EventFactory.php
index 2cb91c9b..030cf409 100644
--- a/tests/Unit/Factories/EventFactory.php
+++ b/tests/Unit/Factories/EventFactory.php
@@ -31,12 +31,12 @@ $fm->define('OCA\Polls\Db\Event')->setDefinitions([
'title' => Faker::sentence(10),
'description' => Faker::text(255),
'owner' => Faker::firstNameMale(),
- 'created' => function () {
+ 'created' => function() {
$date = new DateTime('today');
return $date->format('Y-m-d H:i:s');
},
'access' => 'registered',
- 'expire' => function () {
+ 'expire' => function() {
$date = new DateTime('tomorrow');
return $date->format('Y-m-d H:i:s');
},