Skip to content

Commit

Permalink
SelectElementTest: Add Translation
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Nov 7, 2022
1 parent 77641d3 commit 47ab4d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/FormElement/SelectElementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

use ipl\Html\FormElement\SelectElement;
use ipl\Html\FormElement\SelectOption;
use ipl\I18n\NoopTranslator;
use ipl\I18n\StaticTranslator;
use ipl\Tests\Html\TestCase;

class SelectElementTest extends TestCase
Expand Down Expand Up @@ -33,6 +35,7 @@ public function testFlatOptions()

public function testOptionValidity()
{
StaticTranslator::$instance = new NoopTranslator();
$select = new SelectElement('elname', [
'label' => 'Customer',
'value' => '3',
Expand Down Expand Up @@ -61,6 +64,7 @@ public function testOptionValidity()

public function testSelectingDisabledOptionIsNotPossible()
{
StaticTranslator::$instance = new NoopTranslator();
$select = new SelectElement('elname', [
'label' => 'Customer',
'value' => '4',
Expand Down

0 comments on commit 47ab4d5

Please sign in to comment.