Add more tests for descending sort orders

This commit is contained in:
Robbie Averill 2018-09-28 15:42:45 +02:00
parent ac1fe5e9d5
commit d18b8eb9fb
1 changed files with 8 additions and 0 deletions

View File

@ -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'],