Révision 7b2d1845
Ajouté par Assos Assos il y a presque 4 ans
drupal7/sites/all/modules/webform/tests/WebformTestCase.test | ||
---|---|---|
851 | 851 |
), |
852 | 852 |
'error values' => array( |
853 | 853 |
'1.5' => t('!name field value of @value must be an integer.', array('!name' => 'Integer', '@value' => '1.5')), |
854 |
'101' => t('!name field value must be less than @max.', array('!name' => 'Integer', '@max' => '100')), |
|
854 |
'101' => t('!name field value must be less than or equal to @max.', array('!name' => 'Integer', '@max' => '100')),
|
|
855 | 855 |
), |
856 | 856 |
), |
857 | 857 |
'integer_range' => array( |
... | ... | |
915 | 915 |
'empty' => TRUE, |
916 | 916 |
), |
917 | 917 |
'error values' => array( |
918 |
'-1' => t('!name field value must be greater than @min.', array('!name' => 'Decimal positive', '@min' => '0')), |
|
918 |
'-1' => t('!name field value must be greater than or equal to @min.', array('!name' => 'Decimal positive', '@min' => '0')),
|
|
919 | 919 |
), |
920 | 920 |
), |
921 | 921 |
'decimal_range' => array( |
... | ... | |
988 | 988 |
|
989 | 989 |
/** |
990 | 990 |
* Create a sample Webform node. |
991 |
* |
|
992 |
* @param array $webform_settings |
|
993 |
* Settings to use for this form. Any unspecified settings will be default. |
|
991 | 994 |
*/ |
992 |
public function webformForm() { |
|
995 |
public function webformForm(array $webform_settings = array()) {
|
|
993 | 996 |
if (isset($this->_webform_node)) { |
994 | 997 |
return $this->_webform_node; |
995 | 998 |
} |
... | ... | |
1007 | 1010 |
'title' => 'Test Webform', |
1008 | 1011 |
'log' => '', |
1009 | 1012 |
'format' => '1', |
1010 |
'webform' => array( |
|
1013 |
'webform' => $webform_settings + array(
|
|
1011 | 1014 |
'confirmation' => 'Thanks!', |
1012 | 1015 |
) + webform_node_defaults(), |
1013 | 1016 |
); |
Formats disponibles : Unified diff
Weekly update of contrib modules