Skip to content

fix(tests): IAppConfig::setValueString mock callbacks must return bool#201

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/phpunit-iappconfig-mock-return
May 19, 2026
Merged

fix(tests): IAppConfig::setValueString mock callbacks must return bool#201
rubenvdlinde merged 1 commit into
developmentfrom
fix/phpunit-iappconfig-mock-return

Conversation

@rubenvdlinde
Copy link
Copy Markdown

Fixes all PHPUnit failures across the PHP 8.3/8.4 x NC stable31/32/33 matrix.

Root cause

IAppConfig::setValueString() returns bool in NC stable31+. The two test mock callbacks in SettingsServiceTest declared void and returned null, causing:

TypeError: MockObject_IAppConfig_xxx::setValueString(): Return value must be of type bool, null returned

Fix

Change both willReturnCallback callbacks to declare : bool return and return true; on success.

Impact

Unblocks 7 open planix PRs that were all red on the same upstream PHPUnit failure (#197, #198, #178, #177, #182, #184, #176).

NC stable31/32/33 IAppConfig::setValueString returns bool; the test
mock callbacks declared void and returned null, causing a TypeError
in every PHPUnit job across the matrix (PHP 8.3+8.4 x NC 31/32/33).

Change both willReturnCallback callbacks in SettingsServiceTest to
return bool and return true on success.
@github-actions
Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/planix @ 630ec3a

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
composer ✅ 100/100
npm ✅ 215/215
PHPUnit
Newman ⏭️
Playwright ⏭️

Coverage: 0% (0/3 statements)


Quality workflow — 2026-05-19 03:22 UTC

Download the full PDF report from the workflow artifacts.

@rubenvdlinde rubenvdlinde merged commit 6cbb269 into development May 19, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant