Skip to content
Extraits de code Groupes Projets
Vérifiée Valider f454ced8 rédigé par Guinness's avatar Guinness
Parcourir les fichiers

Mise à jour des tests avec les nouvelles contreparties

parent 280924b9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!122Preprod
...@@ -36,7 +36,7 @@ class DonationHandlerTest extends FunctionalTest ...@@ -36,7 +36,7 @@ class DonationHandlerTest extends FunctionalTest
public function testDonationCreateCommand() 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));
} }
......
...@@ -15,9 +15,9 @@ class UserHandlerTest extends FunctionalTest ...@@ -15,9 +15,9 @@ class UserHandlerTest extends FunctionalTest
{ {
$this->container['command_handler']->handle(new AdminUpdateTotalUsersCommand()); $this->container['command_handler']->handle(new AdminUpdateTotalUsersCommand());
$this->assertSame(1000, (int) $this->getUser(1)['total']); $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(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() public function testUserUpdateFromAdmin()
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter