Add test cover for ScheduledPublishWidget
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3373976. --> Reported by: [lostcarpark](https://www.drupal.org/user/346773) Related to !56 !15 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Issue <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/scheduled_publish/-/work_items/3370096" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/scheduled_publish/-/work_items/3370096</a></span> introduced an error due to a reference of $this in a static member. This was missed by the CI because there is no cover for the ScheduledPublishWidget class.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add a new test to verify the ScheduledPublishWidget class.</p> <p>This could either be a test that covers just the class, or a functional test that simulates creating and scheduling a node.</p>
issue