diff --git a/tests/functional/Finder/UserFinderTest.php b/tests/functional/Finder/UserFinderTest.php index 9eb307be53c5370d99d9cc4801416c717340c7f3..3c9a2414fd6d1e69bc2cdc373eae2e2eec823a0a 100644 --- a/tests/functional/Finder/UserFinderTest.php +++ b/tests/functional/Finder/UserFinderTest.php @@ -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')); } } diff --git a/tests/functional/Handler/CommandHandlerTest.php b/tests/functional/Handler/CommandHandlerTest.php index 4871cf1966e8c2ac59777dbe21397b511126dfb5..66d64a6d52bc1c945628d1809f6e9790863eab19 100644 --- a/tests/functional/Handler/CommandHandlerTest.php +++ b/tests/functional/Handler/CommandHandlerTest.php @@ -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)[]); } }