Skip to content

Commit

Permalink
Fix addBasicDate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skarya22 committed Dec 3, 2024
1 parent 9b5ce15 commit 4d5e670
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/unittests/NDB_PageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ public function testAddBasicDateWithNoDateOptions()
'label' => 'test_label',
'type' => 'date',
'class' => 'form-control input-sm',
'options' => []
'options' => [
'maxYear' => '9999'
]
],
$this->_page->form->form['test_name']
);
Expand All @@ -279,7 +281,10 @@ public function testAddBasicDateWithDateOptionsSet()
'label' => 'test_label',
'type' => 'date',
'class' => 'form-control input-sm',
'options' => ['someOption' => 'true']
'options' => [
'someOption' => 'true',
'maxYear' => '9999'
]
],
$this->_page->form->form['test_name']
);
Expand Down

0 comments on commit 4d5e670

Please sign in to comment.