Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gesinn-it-ilm committed Jan 10, 2025
1 parent 8c7bcb3 commit 11de7ce
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@
},
"assert-output": {
"to-contain": [
"<span id='input_1' class=' oo-ui-widget oo-ui-widget-enabled oo-ui-inputWidget oo-ui-checkboxInputWidget'>",
"<input type='checkbox'",
"tabindex='1'",
"name='standard input[Checkbox][value]'",
"class='oo-ui-inputWidget-input' />",
"<span class='oo-ui-checkboxInputWidget-checkIcon oo-ui-widget oo-ui-widget-enabled oo-ui-iconElement-icon oo-ui-icon-check oo-ui-iconElement oo-ui-labelElement-invisible oo-ui-iconWidget oo-ui-image-invert'>"
"standard input[Checkbox][is_checkbox]"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
},
"assert-output": {
"to-contain": [
"<input type='date' tabindex='0' name='standard input[Datepicker]' value='' placeholder='YYYY-MM-DD' class='oo-ui-inputWidget-input' />"
"<div class=\"pfPickerWrapper\">",
"pfDatePicker",
"standard input[Datepicker]",
"placeholder='YYYY-MM-DD'"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"assert-output": {
"to-contain": [
"<div class=\"pfOpenLayersInput\">",
"<div class='pfAddressInput oo-ui-widget oo-ui-widget-enabled oo-ui-inputWidget oo-ui-textInputWidget oo-ui-textInputWidget-type-text oo-ui-textInputWidget-php'>",
"pfAddressInput",
"placeholder='Enter address here'",
"pfLookUpAddress",
"<span class='oo-ui-labelElement-label'>Calculate coordinates using address</span>",
Expand Down
4 changes: 3 additions & 1 deletion tests/phpunit/integration/includes/PF_TemplateInFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ public function testSetFieldValuesFromSubmitMultipleInstances(): void {
$template = new PFTemplateInForm();
$template->setTemplateName( 'My Template' );
$template->setAllowsMultiple( true );
$template->setInstanceNum( 1 );
if ( version_compare( MW_VERSION, '1.39', '>=' ) ) {
$template->setInstanceNum( 1 );
}

$template->setFieldValuesFromSubmit();

Expand Down

0 comments on commit 11de7ce

Please sign in to comment.