From cc9e843f92e418f68dd5240f1067b20f1a6168d5 Mon Sep 17 00:00:00 2001 From: Okhin Date: Sat, 13 Oct 2018 15:57:54 +0200 Subject: [PATCH] Fix the test for User.adminSearch() --- tests/functional/Finder/UserFinderTest.php | 2 +- tests/functional/Handler/CommandHandlerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/Finder/UserFinderTest.php b/tests/functional/Finder/UserFinderTest.php index 9eb307b..3c9a241 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 4871cf1..66d64a6 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)[]); } } -- GitLab