Skip to content

test: add unit tests for Session BaseHandler - #10434

Open
gr8man wants to merge 2 commits into
codeigniter4:developfrom
gr8man:tests/add-basehandler-unit-tests
Open

test: add unit tests for Session BaseHandler#10434
gr8man wants to merge 2 commits into
codeigniter4:developfrom
gr8man:tests/add-basehandler-unit-tests

Conversation

@gr8man

@gr8man gr8man commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Add comprehensive unit tests for system/Session/Handlers/BaseHandler.php, covering the constructor, lockSession(), releaseLock(), fail(), destroyCookie(), and the LoggerAwareTrait integration.

@github-actions github-actions Bot added the testing Pull requests that changes tests only label Jul 30, 2026
@gr8man
gr8man force-pushed the tests/add-basehandler-unit-tests branch from 90ed381 to 567af5d Compare July 31, 2026 18:31
@michalsn

Copy link
Copy Markdown
Member

Thank you for your effort. Our testing guidelines recommend testing public behavior rather than protected or private implementation details, except when those internals are sufficiently complex to justify direct testing. Since these methods are simple, pursuing higher coverage here would add maintenance cost without meaningfully increasing confidence. For that reason, I don't think we should merge this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Pull requests that changes tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants