mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Error in User_Query
This commit is contained in:
@@ -1035,7 +1035,6 @@ class User_Query implements User_QueryInterface
|
||||
|
||||
if ('' !== $sorter = $this->generate_sort_constraint()) {
|
||||
$sql .= ' ORDER BY ' . $sorter;
|
||||
return $sql;
|
||||
}
|
||||
return [$sql, $this->sql_params];
|
||||
}
|
||||
|
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Tests\Phrasea\Controller\Admin;
|
||||
use Symfony\Component\HttpKernel\Client;
|
||||
|
||||
/**
|
||||
* @group functional
|
||||
@@ -211,8 +212,11 @@ class UsersTest extends \PhraseanetAuthenticatedWebTestCase
|
||||
|
||||
public function testRouteSearch()
|
||||
{
|
||||
self::$DI['client']->request('POST', '/admin/users/search/');
|
||||
$response = self::$DI['client']->getResponse();
|
||||
/** @var Client $client */
|
||||
$client = self::$DI['client'];
|
||||
|
||||
$client->request('POST', '/admin/users/search/');
|
||||
$response = $client->getResponse();
|
||||
$this->assertTrue($response->isOK());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user