Commit cc9e843f authored by Okhin's avatar Okhin

Fix the test for User.adminSearch()

parent e62567f6
Pipeline #2028 passed with stages
in 10 seconds
......@@ -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'));
}
}
......@@ -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)[]);
}
}
......
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