diff options
author | dartcafe <github@dartcafe.de> | 2018-05-10 17:24:08 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2018-05-10 17:24:08 +0300 |
commit | a9afca8f8a53f8599583251e351594e34d4b7057 (patch) | |
tree | 43fb630f1e44a367a2eb5c4c27cb5ab02df3c136 /tests/Unit | |
parent | f8dd48def9ffc7c79af565cfbe1dfee869fa7304 (diff) |
updates
Diffstat (limited to 'tests/Unit')
-rw-r--r-- | tests/Unit/Factories/CommentFactory.php | 2 | ||||
-rw-r--r-- | tests/Unit/Factories/EventFactory.php | 4 |
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'); }, |