Skip to content

chore(tests) #38 Add missing tests - #39

Merged
njoubert-cleverage merged 1 commit into
mainfrom
38
Oct 2, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
38

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #38.

Completes the tests added with #30 and #32 to #36:

  • DatabaseUpdaterTaskSqliteTest (new): DatabaseUpdaterTask on an in-memory SQLite database, with the real options resolution (the existing tests override getOptions() / getConnection()). It covers input_as_params by default, the params option with an ArrayParameterType, the number of affected rows (0 included), non-array input, sql required, invalid option type, and the connection option.
  • DatabaseReaderTaskSqliteTest: next() before the first execution, connection option
  • DoctrineReaderTaskTest: next() before the first execution
  • AbstractDoctrineQueryTaskTest: generated DQL and parameters for =, IS null and IN criteria, order_by (ASC by default for a null order), limit / offset; query without criteria
  • CleverAgeDoctrineProcessExtensionTest (new): the 10 tasks registered as non-shared services in the cleverage_process_task logger channel, with a public alias on their class (used as @<class> in process configurations), and no untested task service
  • CleverAgeDoctrineProcessBundleTest (new): getPath() is the bundle root

Coverage: 286/286 lines (78 tests, 259/286 before).

The 2 PHPUnit deprecations come from phpunit.xml.dist (executionOrder="depends", schema), not from the tests: out of the scope of this PR.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None (tests only).

🤖 Generated with Claude Code

…rineQueryTask query builder, readers, bundle and DI extension

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage merged commit b778a26 into main Oct 2, 2026
22 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.

Add missing tests

1 participant