Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
e1ffca28
Commit
e1ffca28
authored
Dec 03, 2018
by
Okhin
Browse files
Adding total and cumul args to the UserAdminUpdate test
parent
8df6135c
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/functional/Handler/UserHandlerTest.php
View file @
e1ffca28
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment