Commit e1ffca28 authored by okhin's avatar okhin 🚴

Adding total and cumul args to the UserAdminUpdate test

parent 8df6135c
Pipeline #2304 passed with stages
in 13 seconds
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment