Skip to content

refactor: use SQL assertion helper in database tests#10309

Merged
michalsn merged 1 commit into
codeigniter4:4.8from
memleakd:refactor/use-assert-same-sql
Jun 12, 2026
Merged

refactor: use SQL assertion helper in database tests#10309
michalsn merged 1 commit into
codeigniter4:4.8from
memleakd:refactor/use-assert-same-sql

Conversation

@memleakd

@memleakd memleakd commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Description

Follow-up to #10299.

This PR replaces direct SQL equality assertions with the new assertSameSql() helper.

A few non-direct cases were left unchanged, such as assertions with extra normalization, prefix checks, or test-mode return types that are not statically plain strings.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

Signed-off-by: memleakd <121398829+memleakd@users.noreply.github.com>
@github-actions github-actions Bot added testing Pull requests that changes tests only 4.8 PRs that target the `4.8` branch. labels Jun 12, 2026
@michalsn michalsn merged commit 1300987 into codeigniter4:4.8 Jun 12, 2026
55 checks passed
@michalsn

Copy link
Copy Markdown
Member

Thank you @memleakd

@memleakd memleakd deleted the refactor/use-assert-same-sql branch June 12, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.8 PRs that target the `4.8` branch. testing Pull requests that changes tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants