Issue #3206428 by Taran2L: [PHP 8] test failures in Form element validation
parent
da838de720
commit
98fedadfa7
|
@ -240,14 +240,14 @@ class FormsTestCase extends DrupalWebTestCase {
|
|||
$values = drupal_json_decode($this->drupalPost(NULL, array('required_checkbox' => 1), t('Submit')));
|
||||
$expected_values = array(
|
||||
'disabled_checkbox_on' => 'disabled_checkbox_on',
|
||||
'disabled_checkbox_off' => '',
|
||||
'disabled_checkbox_off' => 0,
|
||||
'checkbox_on' => 'checkbox_on',
|
||||
'checkbox_off' => '',
|
||||
'checkbox_off' => 0,
|
||||
'zero_checkbox_on' => '0',
|
||||
'zero_checkbox_off' => '',
|
||||
'zero_checkbox_off' => 0,
|
||||
);
|
||||
foreach ($expected_values as $widget => $expected_value) {
|
||||
$this->assertEqual($values[$widget], $expected_value, format_string('Checkbox %widget returns expected value (expected: %expected, got: %value)', array(
|
||||
$this->assertIdentical($values[$widget], $expected_value, format_string('Checkbox %widget returns expected value (expected: %expected, got: %value)', array(
|
||||
'%widget' => var_export($widget, TRUE),
|
||||
'%expected' => var_export($expected_value, TRUE),
|
||||
'%value' => var_export($values[$widget], TRUE),
|
||||
|
|
Loading…
Reference in New Issue