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
cc9e843f
Commit
cc9e843f
authored
Oct 13, 2018
by
Okhin
Browse files
Fix the test for User.adminSearch()
parent
e62567f6
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/functional/Finder/UserFinderTest.php
View file @
cc9e843f
...
...
@@ -27,7 +27,7 @@ class UserFinderTest extends FunctionalTest
public
function
testAdminSearch
()
{
$this
->
assertCount
(
1
,
$this
->
container
[
'user_finder'
]
->
adminSearch
(
$text
=
'alice@example.org'
,
$status
=
''
));
$this
->
assertCount
(
1
,
$this
->
container
[
'user_finder'
]
->
adminSearch
(
$text
=
''
,
$status
=
'1'
));
$this
->
assertCount
(
2
,
$this
->
container
[
'user_finder'
]
->
adminSearch
(
$text
=
''
,
$status
=
'1'
));
}
}
tests/functional/Handler/CommandHandlerTest.php
View file @
cc9e843f
...
...
@@ -16,7 +16,7 @@ class CommandHandlerTest extends Functionaltest
public
function
testCommandNotHandledException
()
{
$this
->
setExpectedException
(
'LQDN\Exception\CommandNotHandledException'
);
$this
->
container
[
'command_handler'
]
->
handle
(
new
class
{}
);
$this
->
container
[
'command_handler'
]
->
handle
(
(
object
)[]
);
}
}
...
...
Write
Preview
Supports
Markdown
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