Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/tests/views_basic.test | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* Definition of ViewsBasicTest. |
|
6 | 5 |
*/ |
7 | 6 |
|
8 | 7 |
/** |
9 | 8 |
* Basic test class for Views query builder tests. |
10 | 9 |
*/ |
10 |
/** |
|
11 |
* |
|
12 |
*/ |
|
11 | 13 |
class ViewsBasicTest extends ViewsSqlTest { |
12 | 14 |
public static function getInfo() { |
13 | 15 |
return array( |
14 | 16 |
'name' => 'Basic query test', |
15 | 17 |
'description' => 'A basic query test for Views.', |
16 |
'group' => 'Views' |
|
18 |
'group' => 'Views',
|
|
17 | 19 |
); |
18 | 20 |
} |
19 | 21 |
|
... | ... | |
137 | 139 |
'validate_argument_transform' => 0, |
138 | 140 |
'validate_user_restrict_roles' => 0, |
139 | 141 |
'validate_argument_php' => '', |
140 |
) |
|
142 |
),
|
|
141 | 143 |
)); |
142 | 144 |
|
143 | 145 |
$saved_view = clone $view; |
144 | 146 |
|
145 |
// Execute with a view |
|
147 |
// Execute with a view.
|
|
146 | 148 |
$view->set_arguments(array(27)); |
147 | 149 |
$this->executeView($view); |
148 | 150 |
|
... | ... | |
175 | 177 |
'views_test_age' => 'age', |
176 | 178 |
)); |
177 | 179 |
} |
180 |
|
|
178 | 181 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules