We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3ec9c6 commit aaa0f7bCopy full SHA for aaa0f7b
tests/ScheduleElementTest.php
@@ -20,9 +20,11 @@ protected function setUp(): void
20
protected function assembleElement(array $options): ScheduleElement
21
{
22
$element = new ScheduleElement('test', $options);
23
+ // ScheduleElement#getValue won't return an instance of Frequency if it's not validated
24
+ $element->ensureAssembled()->validate();
25
26
// Remove the recurrences preview. It randomizes the HTML and isn't subject to test
- if ($element->ensureAssembled()->hasElement('schedule-recurrences')) {
27
+ if ($element->hasElement('schedule-recurrences')) {
28
$element->remove($element->getElement('schedule-recurrences'));
29
}
30
0 commit comments