Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/tests/styles/views_plugin_style_jump_menu.test | ||
---|---|---|
17 | 17 |
*/ |
18 | 18 |
var $nodes; |
19 | 19 |
|
20 |
/** |
|
21 |
* |
|
22 |
*/ |
|
20 | 23 |
public static function getInfo() { |
21 | 24 |
return array( |
22 | 25 |
'name' => 'Jump menu', |
... | ... | |
25 | 28 |
); |
26 | 29 |
} |
27 | 30 |
|
28 |
|
|
31 |
/** |
|
32 |
* |
|
33 |
*/ |
|
29 | 34 |
public function setUp() { |
30 | 35 |
parent::setUp(); |
31 | 36 |
$this->nodes = array(); |
... | ... | |
37 | 42 |
$this->nodeTitles = array($this->nodes['page'][0]->title, $this->nodes['page'][1]->title, $this->nodes['story'][0]->title, $this->nodes['story'][1]->title); |
38 | 43 |
} |
39 | 44 |
|
40 |
|
|
41 | 45 |
/** |
42 | 46 |
* Tests jump menues with more then one same path but maybe differnet titles. |
43 | 47 |
*/ |
... | ... | |
46 | 50 |
$view->set_display(); |
47 | 51 |
$view->init_handlers(); |
48 | 52 |
|
49 |
// Setup a [path] which would leed to "duplicate" paths, but still the shouldn't be used for grouping. |
|
53 |
// Setup a [path] which would leed to "duplicate" paths, but still the |
|
54 |
// shouldn't be used for grouping. |
|
50 | 55 |
$view->field['nothing']->options['alter']['text'] = '[path]'; |
51 | 56 |
$view->preview(); |
52 | 57 |
$form = $view->style_plugin->render($view->result); |
... | ... | |
65 | 70 |
} |
66 | 71 |
} |
67 | 72 |
|
73 |
/** |
|
74 |
* |
|
75 |
*/ |
|
68 | 76 |
function getJumpMenuView() { |
69 |
$view = new view; |
|
77 |
$view = new view();
|
|
70 | 78 |
$view->name = 'test_jump_menu'; |
71 | 79 |
$view->description = ''; |
72 | 80 |
$view->tag = 'default'; |
... | ... | |
148 | 156 |
|
149 | 157 |
return $view; |
150 | 158 |
} |
159 |
|
|
151 | 160 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules