Skip to content

Commit

Permalink
#340 fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
digedag committed Nov 26, 2023
1 parent 579a045 commit 9b4ea50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Classes/Backend/Form/ToolBoxTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function testCreateSelectByArrayIfReloadOption()
['reload' => true]
);
$expectedSelect = '<select name="testSelect" class="select" data-global-event="change" data-action-submit="$form"><option value="1" selected="selected">John</option><option value="2" >Doe</option></select>';
if (!TYPO3::isTYPO121OrHigher) {
if (!TYPO3::isTYPO121OrHigher()) {
$expectedSelect = '<select name="testSelect" class="select" onchange=" this.form.submit(); "><option value="1" selected="selected">John</option><option value="2" >Doe</option></select>';
}

Expand Down Expand Up @@ -147,7 +147,7 @@ public function testCreateSelectByArrayIfReloadAndOnchangeOption()
);
$expectedSelect = '<select name="testSelect" class="select" data-global-event="change" data-action-submit="$form" onchange="myJsFunction"><option value="1" selected="selected">John</option><option value="2" >Doe</option></select>';

if (!TYPO3::isTYPO121OrHigher) {
if (!TYPO3::isTYPO121OrHigher()) {
$expectedSelect = '<select name="testSelect" class="select" onchange=" this.form.submit(); myJsFunction"><option value="1" selected="selected">John</option><option value="2" >Doe</option></select>';
}
self::assertEquals($expectedSelect, $select);
Expand Down

0 comments on commit 9b4ea50

Please sign in to comment.