for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ApplicationTest\Api\Input\Sorting;
use Application\Model\User;
class AgeTest extends AbstractSorting
{
public function testSorting(): void
$administrator = new User(User::ROLE_ADMINISTRATOR);
User::setCurrent($administrator);
$result = $this->getSortedQueryResult(User::class, 'age');
self::assertSame([
-1004,
-1002,
-1010,
-1000,
-1007,
-1001,
-1005,
-1006,
-1008,
-1009,
-1011,
-1003,
], $result);
}