Skip to content
Extraits de code Groupes Projets
Valider cc9e843f rédigé par Okhin's avatar Okhin
Parcourir les fichiers

Fix the test for User.adminSearch()

parent e62567f6
Branches
Étiquettes
3 requêtes de fusion!37Mise en production,!13Resolve "La structure des piplomes à changer, le Finder n'est plus fonctionnels.",!8WIP: Resolve "Améliorer et ajouter des tests"
......@@ -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)[]);
}
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter