Skip to content
Extraits de code Groupes Projets
Valider e1ffca28 rédigé par Okhin's avatar Okhin
Parcourir les fichiers

Adding total and cumul args to the UserAdminUpdate test

parent 8df6135c
Branches
Étiquettes
2 requêtes de fusion!78Preprod,!77Resolve "Souci sur solde des donateurs"
......@@ -25,12 +25,14 @@ class UserHandlerTest extends FunctionalTest
$this->assertSame('alice@example.org', $user['email']);
$this->assertSame('RAS', $user['commentaire']);
$this->container['command_handler']->handle(new UserUpdateByAdminCommand(1, 'Foobar', 'foobar@example.org', 'This is foobar avé dé accênts !'));
$this->container['command_handler']->handle(new UserUpdateByAdminCommand(1, 'Foobar', 'foobar@example.org', 'This is foobar avé dé accênts !', 2000, 1000));
$user = $this->getUser(1);
$this->assertSame('Foobar', $user['pseudo']);
$this->assertSame('foobar@example.org', $user['email']);
$this->assertSame('This is foobar avé dé accênts !', $user['commentaire']);
$this->assertSame(2000, (int) $user['total']);
$this->assertSame(1000, (int) $user['cumul']);
}
public function testUserCreateCommand()
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter