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

bleedingdeacons / amber / 30692684865
92%

Build:
DEFAULT BRANCH: main
Ran 01 Aug 2026 08:55AM UTC
Jobs 1
Files 30
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

01 Aug 2026 08:54AM UTC coverage: 93.083%. Remained the same
30692684865

push

github

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

Amber is where WpState and FakeWpdb were invented, and where wp-mocks was
largely factored out of. This hands the originals back: tests/stubs/wordpress.php
(877 lines), tests/WpState.php and tests/FakeWpdb.php all go, and the suite
takes the shared copies instead.

Comparing the two side by side, the only WordPress functions this plugin
defined that wp-mocks does not is the hook family — add_action, add_filter,
do_action, apply_filters, has_action, remove_action, did_action — and that is
deliberate. Brain Monkey owns them, and a stub defined at bootstrap would
permanently shadow its definitions; the failure is silent, because hook
expectations then go unsatisfied while the calls quietly go elsewhere.

So hooksFor() is replaced by assertHookAdded(), over Brain Monkey's stores.
It keeps the old semantics exactly — "is *something* registered under this
name" — which matters because several of the names these tests assert on are
filters (manage_*_posts_columns) sitting alongside actions (save_post_*), and
Brain Monkey keeps the two apart.

JsonResponseException and WpDieException were local classes with the same
shape as the package's; the imports repoint and nothing else changes.

413 tests, PHPStan clean — identical to before.

3620 of 3889 relevant lines covered (93.08%)

3.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30692684865.1 01 Aug 2026 08:55AM UTC 30
93.08
GitHub Action Run
Source Files on build 30692684865
  • Tree
  • List 30
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30692684865
  • 13cc2e71 on github
  • Prev Build on main (#30567957213)
  • Next Build on main (#30696034309)
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