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

bleedingdeacons / concordance / 30672623197
94%

Build:
DEFAULT BRANCH: main
Ran 31 Jul 2026 11:21PM UTC
Jobs 1
Files 9
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: 92.241%. Remained the same
30672623197

push

github

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

tests/wp-stubs.php was 270 lines of hand-rolled WordPress: WP_Error, the REST
request/response objects, options and transients over $GLOBALS['conc_*'], the
WP HTTP API, a local $wpdb, and the usual formatting helpers. All of it comes
from bleedingdeacons/wp-mocks now.

What is left in that file is what the package deliberately does not cover:
the WP-CLI stand-ins — WP-CLI is not WordPress, and Concordance is the only
plugin here with a CLI command, so there is nothing to share — and the two
auth salts, since constants describing a particular installation are left to
the consuming plugin by design.

The tests move onto the shared state rather than the globals: WpState::$options,
$transients, $restRoutes and $isAdmin, Doubles\FakeWpHttp for the API client,
and Doubles\FakeWpdb for ApiCache::flush(). The conc_cli_* globals stay, being
backed by the stubs that stay.

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 — which fails silently, because the calls then never reach the
container its expectations read.

get_query_params() was missing from the package's rest group; added in
wp-mocks#5 and released as v1.1.1, which this requires.

113 tests, PHPStan clean.

535 of 580 relevant lines covered (92.24%)

3.95 hits per line

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