diff options
author | Tortue Torche <tortuetorche@users.noreply.github.com> | 2019-12-11 11:27:26 +0300 |
---|---|---|
committer | Tortue Torche <tortuetorche@users.noreply.github.com> | 2019-12-11 11:40:53 +0300 |
commit | bb507dce72eee076dc08d6fe902765e963a738ae (patch) | |
tree | 7f923970365c3f41eb2677456df7c365013812b0 /tests/Unit | |
parent | c344e17844e98b41ed769739c26151104bd76b65 (diff) |
Fix tests according to @dartcafe comments
Signed-off-by: Tortue Torche <tortuetorche@users.noreply.github.com>
Diffstat (limited to 'tests/Unit')
-rw-r--r-- | tests/Unit/Factories/EventFactory.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/Unit/Factories/EventFactory.php b/tests/Unit/Factories/EventFactory.php index 45155ee8..db94ab70 100644 --- a/tests/Unit/Factories/EventFactory.php +++ b/tests/Unit/Factories/EventFactory.php @@ -40,8 +40,11 @@ $fm->define('OCA\Polls\Db\Event')->setDefinitions([ $date = new DateTime('tomorrow'); return $date->format('Y-m-d H:i:s'); }, - 'token' => Faker::regexify('[A-Za-z0-9]{16}'), 'isAnonymous' => 0, 'fullAnonymous' => 0, - 'showResults' => true, + 'showResults' => 'always', + 'delete_date' => function() { + $date = new DateTime('+1 month'); + return $date->format('Y-m-d H:i:s'); + }, ]); |