Commit 98b4615a authored by Okhin's avatar Okhin

Fix the test for User.adminSearch()

parent 5da685b3
...@@ -27,7 +27,7 @@ class UserFinderTest extends FunctionalTest ...@@ -27,7 +27,7 @@ class UserFinderTest extends FunctionalTest
public function testAdminSearch() 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='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 ...@@ -16,7 +16,7 @@ class CommandHandlerTest extends Functionaltest
public function testCommandNotHandledException() public function testCommandNotHandledException()
{ {
$this->setExpectedException('LQDN\Exception\CommandNotHandledException'); $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