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

bleedingdeacons / lifelines / 30672626354
95%

Build:
DEFAULT BRANCH: main
Ran 31 Jul 2026 11:21PM UTC
Jobs 1
Files 6
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

31 Jul 2026 11:20PM UTC coverage: 95.098%. Remained the same
30672626354

push

github

web-flow
test: take WordPress stand-ins from wp-mocks (#26)

The bootstrap hand-rolled ~300 lines of WordPress: WP_Error, options over
$GLOBALS, escaping and i18n, the asset and shortcode registry, wp_insert_post()
and the post readers, wp_send_json_success(). Standalone does not mean the
WordPress it touches is different from everyone else's, so all of it now comes
from bleedingdeacons/wp-mocks and the tests read WpState instead of the
globals.

Two things stay, for reasons worth recording:

FakeWpdb stays local. wp-mocks' Doubles\FakeWpdb answers every get_var() with
one queued scalar and every get_results() with one queued set of rows, and
LifeLines needs more than that simultaneously — get_var() must tell "SHOW
TABLES LIKE" from "COUNT(*)" within a single test, get_results() must be a
queue so exportCsv()'s chunked loop can be handed a chunk and then a simulated
read failure, and query() must report an INSERT's value-tuple count because
that is how import() totals its rows. Sentinel keeps its own for the same kind
of reason. The docblock now says so.

dbDelta() stays local. It lives in wp-admin/includes and is only reachable
after the require of the stub file this bootstrap writes to a temp ABSPATH,
which is a plugin-specific arrangement.

The no-op add_action() goes with the rest. Brain Monkey owns the hook
functions, and a stub defined at bootstrap would permanently shadow its
definitions — silently, because the calls then never reach the container its
expectations read.

LifeLinesJsonResponse is replaced by the package's JsonResponseException,
which carries the same payload.

68 tests, PHPStan clean.

291 of 306 relevant lines covered (95.1%)

3.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30672626354.1 31 Jul 2026 11:21PM UTC 6
95.1
GitHub Action Run
Source Files on build 30672626354
  • Tree
  • List 6
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30672626354
  • c15fd302 on github
  • Prev Build on main (#30568063721)
  • Next Build on main (#30696031551)
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