Révision 01f36513
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/webform/tests/WebformConditionalsTestCase.test | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 | 3 |
/** |
4 |
* @file |
|
5 | 4 |
* Webform module conditional tests. |
6 | 5 |
*/ |
7 |
|
|
8 |
/** |
|
9 |
* |
|
10 |
*/ |
|
11 | 6 |
class WebformConditionalsTestCase extends WebformTestCase { |
12 | 7 |
|
13 | 8 |
/** |
... | ... | |
54 | 49 |
* @param $component |
55 | 50 |
* The sample component that should be tested as the source of a conditional |
56 | 51 |
* operator. |
52 |
* @param $input_values |
|
57 | 53 |
* @param $operator |
58 | 54 |
* The operator that will be used to check the source component, such as |
59 | 55 |
* "equal" or "starts_with". See _webform_conditional_operator_info(). |
... | ... | |
67 | 63 |
* If FALSE, validation errors are expected to be triggered. The input |
68 | 64 |
* $value will be compared against the "sample values" input provided by |
69 | 65 |
* webformComponents(). |
70 |
* |
|
71 |
* @return void |
|
72 |
* This function executes its own assert statements to show results. |
|
73 | 66 |
*/ |
74 | 67 |
private function webformTestConditionalComponent($component, $input_values, $operator, $conditional_values, $should_match) { |
75 | 68 |
// Create the Webform test node and add a same-page conditional followed |
Formats disponibles : Unified diff
Weekly update of contrib modules