Skip to content

Commit

Permalink
update to nette forms 3.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dakorpar committed Feb 24, 2023
1 parent 8186521 commit 37a6bfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"require": {
"php": ">=7.2",
"nette/forms": "3.1.9",
"nette/forms": "3.1.10",
"nette/application": "^3.0"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions tests/Inputs/RadioInputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class RadioInputTest extends BaseTest
public function testRadioInput(): void
{
$form = new BootstrapForm();
$input = $form->addRadioList('txt', 'lbl', [1 => 1, 2 => 2]);
$input = $form->addRadioList('txt', 'lbl', [1 => '1', 2 => '2']);
$this->assertEquals('<fieldset><div class="custom-control custom-radio"><input class="custom-control-input" type="radio" value="1" name="txt" id="frm-txt0" data-nette-rules="[]"><label class="custom-control-label" for="frm-txt0">1</label></div><div class="custom-control custom-radio"><input class="custom-control-input" type="radio" value="2" name="txt" id="frm-txt1"><label class="custom-control-label" for="frm-txt1">2</label></div></fieldset>', (string) $input->getControl());
}

Expand All @@ -21,7 +21,7 @@ public function testRadioInputV5(): void
BootstrapForm::switchBootstrapVersion(BootstrapVersion::V5);

$form = new BootstrapForm();
$input = $form->addRadioList('txt', 'lbl', [1 => 1, 2 => 2]);
$input = $form->addRadioList('txt', 'lbl', [1 => '1', 2 => '2']);
$this->assertEquals('<fieldset><div class="form-check"><input class="form-check-input" type="radio" value="1" name="txt" id="frm-txt0" data-nette-rules="[]"><label class="form-check-label" for="frm-txt0">1</label></div><div class="form-check"><input class="form-check-input" type="radio" value="2" name="txt" id="frm-txt1"><label class="form-check-label" for="frm-txt1">2</label></div></fieldset>', (string) $input->getControl());

BootstrapForm::switchBootstrapVersion(BootstrapVersion::V4);
Expand Down

0 comments on commit 37a6bfa

Please sign in to comment.