Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/tests/handlers/views_handler_filter_numeric.test
38 38
  public function testFilterNumericSimple() {
39 39
    $view = $this->getBasicView();
40 40

  
41
    // Change the filtering
41
    // Change the filtering.
42 42
    $view->display['default']->handler->override_option('filters', array(
43 43
      'age' => array(
44 44
        'id' => 'age',
......
82 82
  public function testFilterNumericBetween() {
83 83
    $view = $this->getBasicView();
84 84

  
85
    // Change the filtering
85
    // Change the filtering.
86 86
    $view->display['default']->handler->override_option('filters', array(
87 87
      'age' => array(
88 88
        'id' => 'age',
......
114 114
    );
115 115
    $this->assertIdenticalResultset($view, $resultset, $this->column_map);
116 116

  
117
    // test not between
117
    // test not between.
118 118
    $view->delete();
119 119
    $view = $this->getBasicView();
120 120

  
121
      // Change the filtering
121
    // Change the filtering.
122 122
    $view->display['default']->handler->override_option('filters', array(
123 123
      'age' => array(
124 124
        'id' => 'age',
......
160 160
    $view->set_display('page_1');
161 161
    $view->display['page_1']->handler->override_option('filters', $filters);
162 162

  
163

  
164 163
    $this->executeView($view);
165 164
    $resultset = array(
166 165
      array(
......
188 187
    $view->set_display('page_1');
189 188
    $view->display['page_1']->handler->override_option('filters', $filters);
190 189

  
191

  
192 190
    $this->executeView($view);
193 191
    $resultset = array(
194 192
      array(
......
211 209
  public function testFilterNumericEmpty() {
212 210
    $view = $this->getBasicView();
213 211

  
214
    // Change the filtering
212
    // Change the filtering.
215 213
    $view->display['default']->handler->override_option('filters', array(
216 214
      'age' => array(
217 215
        'id' => 'age',
......
223 221
    ));
224 222

  
225 223
    $this->executeView($view);
226
    $resultset = array(
227
    );
224
    $resultset = array();
228 225
    $this->assertIdenticalResultset($view, $resultset, $this->column_map);
229 226

  
230 227
    $view->delete();
231 228
    $view = $this->getBasicView();
232 229

  
233
    // Change the filtering
230
    // Change the filtering.
234 231
    $view->display['default']->handler->override_option('filters', array(
235 232
      'age' => array(
236 233
        'id' => 'age',
......
243 240

  
244 241
    $this->executeView($view);
245 242
    $resultset = array(
246
    array(
243
      array(
247 244
        'name' => 'John',
248 245
        'age' => 25,
249 246
      ),
......
272 269
    $filters = $this->getGroupedExposedFilters();
273 270
    $view = $this->getBasicPageView();
274 271

  
275
    // Filter: Age, Operator: empty, Value:
272
    // Filter: Age, Operator: empty, Value.
276 273
    $filters['age']['group_info']['default_group'] = 4;
277 274
    $view->set_display('page_1');
278 275
    $view->display['page_1']->handler->override_option('filters', $filters);
279 276

  
280

  
281 277
    $this->executeView($view);
282
    $resultset = array(
283
    );
278
    $resultset = array();
284 279
    $this->assertIdenticalResultset($view, $resultset, $this->column_map);
285 280
  }
286 281

  
......
288 283
    $filters = $this->getGroupedExposedFilters();
289 284
    $view = $this->getBasicPageView();
290 285

  
291
    // Filter: Age, Operator: empty, Value:
286
    // Filter: Age, Operator: empty, Value.
292 287
    $filters['age']['group_info']['default_group'] = 5;
293 288
    $view->set_display('page_1');
294 289
    $view->display['page_1']->handler->override_option('filters', $filters);
295 290

  
296

  
297 291
    $this->executeView($view);
298 292
    $resultset = array(
299
    array(
293
      array(
300 294
        'name' => 'John',
301 295
        'age' => 25,
302 296
      ),

Formats disponibles : Unified diff