Fix order in which entities are flushed in ShortUrlListRepositoryTest

This commit is contained in:
Alejandro Celaya
2024-03-26 09:42:25 +01:00
parent 6fbb5a380d
commit b236354fc7
4 changed files with 86 additions and 118 deletions

View File

@@ -10,7 +10,7 @@ final readonly class Ordering
private const ASC_DIR = 'ASC';
private const DEFAULT_DIR = self::ASC_DIR;
private function __construct(public ?string $field, public string $direction)
public function __construct(public ?string $field = null, public string $direction = self::DEFAULT_DIR)
{
}