Error in User_Query

This commit is contained in:
Benoît Burnichon
2015-10-29 11:25:05 +01:00
parent 6ba4402078
commit 0a6dcda162
2 changed files with 6 additions and 3 deletions

View File

@@ -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];
} }

View File

@@ -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());
} }