Skip to content

Commit b64cbf4

Browse files
committed
test: add new datetime options test
1 parent 6e8a831 commit b64cbf4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/FieldTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ public function it_can_create_datetime_field()
107107

108108
$field->minutesAvailable([1, 2]);
109109
$this->assertEquals([1, 2], $field->opts['minutesAvailable']);
110+
111+
$field->keyInput(false);
112+
$this->assertEquals(false, $field->getAttributes()['keyInput']);
113+
114+
$field->displayFormat('LLL');
115+
$this->assertEquals('LLL', $field->getAttributes()['displayFormat']);
116+
117+
$field->wireFormat('LLL');
118+
$this->assertEquals('LLL', $field->getAttributes()['wireFormat']);
110119
}
111120

112121
/** @test */

0 commit comments

Comments
 (0)