mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Add more tests for descending sort orders
This commit is contained in:
parent
ac1fe5e9d5
commit
d18b8eb9fb
@ -107,6 +107,10 @@ class ManyManyThroughListTest extends SapphireTest
|
||||
'"ManyManyThroughListTest_JoinObject"."Sort" ASC',
|
||||
['item 2', 'item 1'],
|
||||
],
|
||||
'table with default column descending' => [
|
||||
'"ManyManyThroughListTest_JoinObject"."Sort" DESC',
|
||||
['item 1', 'item 2'],
|
||||
],
|
||||
'table with column descending' => [
|
||||
'"ManyManyThroughListTest_JoinObject"."Title" DESC',
|
||||
['item 2', 'item 1'],
|
||||
@ -123,6 +127,10 @@ class ManyManyThroughListTest extends SapphireTest
|
||||
'"Sort" ASC',
|
||||
['item 2', 'item 1'],
|
||||
],
|
||||
'default column descending' => [
|
||||
'"Sort" DESC',
|
||||
['item 1', 'item 2'],
|
||||
],
|
||||
'column descending' => [
|
||||
'"Title" DESC',
|
||||
['item 2', 'item 1'],
|
||||
|
Loading…
Reference in New Issue
Block a user