mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Standardized ordering field handling and added validation for short URLs list
This commit is contained in:
@@ -263,10 +263,10 @@ class ListShortUrlsCommandTest extends TestCase
|
||||
public function provideOrderBy(): iterable
|
||||
{
|
||||
yield [[], null];
|
||||
yield [['--order-by' => 'foo'], 'foo'];
|
||||
yield [['--order-by' => 'foo,ASC'], 'foo-ASC'];
|
||||
yield [['--order-by' => 'bar,DESC'], 'bar-DESC'];
|
||||
yield [['--order-by' => 'baz-DESC'], 'baz-DESC'];
|
||||
yield [['--order-by' => 'visits'], 'visits'];
|
||||
yield [['--order-by' => 'longUrl,ASC'], 'longUrl-ASC'];
|
||||
yield [['--order-by' => 'shortCode,DESC'], 'shortCode-DESC'];
|
||||
yield [['--order-by' => 'title-DESC'], 'title-DESC'];
|
||||
}
|
||||
|
||||
/** @test */
|
||||
|
||||
Reference in New Issue
Block a user