From f454ced89f3baac01c2f794f3740a7410ae775f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Oudin?= <oudin@crans.org>
Date: Fri, 6 Dec 2019 18:47:39 +0100
Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20des=20tests=20avec=20les?=
 =?UTF-8?q?=20nouvelles=20contreparties?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 tests/functional/Handler/DonationHandlerTest.php | 2 +-
 tests/functional/Handler/UserHandlerTest.php     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/functional/Handler/DonationHandlerTest.php b/tests/functional/Handler/DonationHandlerTest.php
index d96f357..b4aa7fa 100644
--- a/tests/functional/Handler/DonationHandlerTest.php
+++ b/tests/functional/Handler/DonationHandlerTest.php
@@ -36,7 +36,7 @@ class DonationHandlerTest extends FunctionalTest
 
     public function testDonationCreateCommand()
     {
-        $this->container['command_handler']->handle(new DonationCreateCommand(1, 1, date("Y-m-d H:M:s"), 50, 0, 0));
+        $this->container['command_handler']->handle(new DonationCreateCommand(1, 1, date("Y-m-d H:i:s"), 50, 0, 0));
 
     }
 
diff --git a/tests/functional/Handler/UserHandlerTest.php b/tests/functional/Handler/UserHandlerTest.php
index 61c6b96..639ab6d 100644
--- a/tests/functional/Handler/UserHandlerTest.php
+++ b/tests/functional/Handler/UserHandlerTest.php
@@ -15,9 +15,9 @@ class UserHandlerTest extends FunctionalTest
     {
         $this->container['command_handler']->handle(new AdminUpdateTotalUsersCommand());
         $this->assertSame(1000, (int) $this->getUser(1)['total']);
-        $this->assertSame(900, (int) $this->getUser(1)['cumul']);
+        $this->assertSame(872 , (int) $this->getUser(1)['cumul']);
         $this->assertSame(1000, (int) $this->getUser(2)['total']);
-        $this->assertSame(750, (int) $this->getUser(2)['cumul']);
+        $this->assertSame(686, (int) $this->getUser(2)['cumul']);
     }
 
     public function testUserUpdateFromAdmin()
-- 
GitLab