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

bleedingdeacons / trusted / 30652353969
92%

Build:
DEFAULT BRANCH: main
Ran 31 Jul 2026 05:45PM UTC
Jobs 1
Files 23
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 05:44PM UTC coverage: 93.051%. Remained the same
30652353969

push

github

web-flow
chore(tests): migrate from wp_mock to bleedingdeacons/wp-mocks (#27)

10up/wp_mock 1.1.1 declares "phpunit/phpunit": "^9.6" in its own require
block and has no PHPUnit 10 branch, so this suite silently resolved to
PHPUnit 9.6.35 despite composer.json asking for "^9.6|^10.0". Brain Monkey
declares no PHPUnit constraint at all, which frees the suite to 10.5.

- composer.json: drop 10up/wp_mock, add bleedingdeacons/wp-mocks ^1.0.2 via a
  vcs repositories entry, pin phpunit/phpunit ^10.5.
- phpunit.xml.dist: 10.5 schema — coverage include/exclude moves into
  <source>, both exclusions carried across intact; cacheResultFile becomes
  cacheDirectory.
- tests/bootstrap.php: Bootstrap::loadPatchwork() first, then this plugin's
  own wp-stubs.php, then Bootstrap::load(['wordpress']) as a backstop. That
  order matters twice over: Patchwork has to precede anything patchable, and
  wp-stubs.php has to precede the shared layer so its recording
  register_post_type()/register_rest_route() keep winning — the tests read the
  $GLOBALS those fill.
- tests/TestCase.php: extends the shared TestCase.
- Call sites: WP_Mock::userFunction() becomes Functions\expect(),
  WP_Mock::onFilter()->reply() becomes Filters\expectApplied()->andReturn().
  The __() and current_user_can() stubs are gone — both are real functions in
  the shared layer with the behaviour these tests asked for.

Two things wp-stubs.php no longer defines:

  - add_action() and add_filter(). Brain Monkey owns the hook layer and
    defines them lazily in its setUp(); a no-op defined at bootstrap would
    shadow them permanently and silently, so every hook expectation would just
    never be satisfied. The pure-PHP tests still extend PHPUnit's TestCase, so
    that split is now load-bearing rather than merely tidy.
  - ARRAY_A, sanitize_text_field(), sanitize_textarea_field(), is_wp_error()
    and flush_rewrite_rules(), all of which the shared layer carries with the
    same behaviour.

The `acf` stub gr... (continued)

1098 of 1180 relevant lines covered (93.05%)

3.02 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30652353969.1 31 Jul 2026 05:45PM UTC 23
93.05
GitHub Action Run
Source Files on build 30652353969
  • Tree
  • List 23
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30652353969
  • c9af470a on github
  • Prev Build on main (#30568032331)
  • Next Build on main (#30668767887)
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