• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bleedingdeacons / confur / 43076900378
96%

Build:
DEFAULT BRANCH: main
Ran 11 Nov 2026 06:23PM UTC
Jobs 1
Files 32
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Nov 2026 06:20PM UTC coverage: 96.056% (+1.1%) from 94.96%
43076900378

push

github

web-flow
refactor: Phase 2 — application services; Settings and Mailer as instances (#86)

The rules that lived in AnswerHandler move into application services that
take their collaborators in the constructor, so they can be tested with a
recording mailer instead of stubbing WordPress mail globally.

Application
- SaveAnswers: checks the target is a non-cancelled answer post, sends the
  backup copy, writes changed answers, decides Draft/Complete (Complete
  needs every question answered), records times, publishes, and thanks the
  group. Refusals are SubmissionRejected with their HTTP status.
- RegisterGroup: blocklist, duplicate detection, missing meeting, title,
  unguessable slug, Draft state and confirmation email.
- DuplicateFinder: duplicate-registration matching, moved out of
  AnswerRepository.

Settings and mail
- Config\Settings: the addresses, switches and blocklist as a value, read
  once with Settings::fromOptions(). ConfurSettings stays behind the admin
  page.
- Services\Mailer replaces the static EmailService and is built from
  Settings. The backup email now escapes the submission instead of putting
  raw $_POST JSON into the HTML body.

Boundary
- AnswerHandler is the HTTP side only: resolves the post, maps the outcome
  to JSON, and is the one place unexpected errors are caught. Services are
  built on first use unless injected.

Also
- Status page "resend confirmation" normalises the ACF meeting value and
  uses the shared meeting-name rule and Mailer.
- Completing a registration with no email address no longer throws.
- AnswerRepositoryTest is removed: it exercised re-implemented copies of
  findDuplicate and normalizePostId. DuplicateFinderTest and AnswerStoreTest
  cover the real code.

270 of 292 new or added lines in 8 files covered. (92.47%)

2411 of 2510 relevant lines covered (96.06%)

4.44 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
88.24
src/Services/Mailer.php
4
93.85
src/Application/RegisterGroup.php
2
96.08
src/Application/SaveAnswers.php
2
0.0
src/Application/SaveResult.php
2
96.0
15.23% src/Handlers/AnswerHandler.php
Jobs
ID Job ID Ran Files Coverage
1 43076900378.1 11 Nov 2026 06:23PM UTC 32
96.06
GitHub Action Run
Source Files on build 43076900378
  • Tree
  • List 32
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43076900378
  • 8fcd0ad5 on github
  • Prev Build on main (#43075284333)
  • Next Build on main (#43098764163)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc