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