Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/tests/handlers/views_handler_sort.test | ||
---|---|---|
23 | 23 |
public function testNumericOrdering() { |
24 | 24 |
$view = $this->getBasicView(); |
25 | 25 |
|
26 |
// Change the ordering |
|
26 |
// Change the ordering.
|
|
27 | 27 |
$view->display['default']->handler->override_option('sorts', array( |
28 | 28 |
'age' => array( |
29 | 29 |
'order' => 'ASC', |
... | ... | |
46 | 46 |
|
47 | 47 |
$view = $this->getBasicView(); |
48 | 48 |
|
49 |
// Reverse the ordering |
|
49 |
// Reverse the ordering.
|
|
50 | 50 |
$view->display['default']->handler->override_option('sorts', array( |
51 | 51 |
'age' => array( |
52 | 52 |
'order' => 'DESC', |
... | ... | |
74 | 74 |
public function testStringOrdering() { |
75 | 75 |
$view = $this->getBasicView(); |
76 | 76 |
|
77 |
// Change the ordering |
|
77 |
// Change the ordering.
|
|
78 | 78 |
$view->display['default']->handler->override_option('sorts', array( |
79 | 79 |
'name' => array( |
80 | 80 |
'order' => 'ASC', |
... | ... | |
97 | 97 |
|
98 | 98 |
$view = $this->getBasicView(); |
99 | 99 |
|
100 |
// Reverse the ordering |
|
100 |
// Reverse the ordering.
|
|
101 | 101 |
$view->display['default']->handler->override_option('sorts', array( |
102 | 102 |
'name' => array( |
103 | 103 |
'order' => 'DESC', |
... | ... | |
118 | 118 |
'views_test_age' => 'age', |
119 | 119 |
)); |
120 | 120 |
} |
121 |
|
|
121 | 122 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules