Skip to content

Releases: dereuromark/cakephp-test-helper

2.8.3

28 Mar 15:43

Choose a tag to compare

Fixes

  • Fix flash message rendering in standalone layout

Improvements

  • Allow sebastian/diff ^8.0

Full Changelog: 2.8.2...2.8.3

2.8.2

09 Feb 13:25
d50392f

Choose a tag to compare

Improvements

  • Add plugin table exclusion for migration snapshots - #37
  • Add allowedStringUrls config for array-urls linter tasks - #38
  • Add custom migration order support for drift-check - #39

Full Changelog: 2.8.1...2.8.2

2.8.1

07 Feb 14:32
03a4865

Choose a tag to compare

Improvements

  • Make PHP path configurable for the different runs - #33
  • Add export formats (JSON, Markdown, Text) to drift-check - #35

Full Changelog: 2.8.0...2.8.1

2.8.0

02 Dec 14:30
143e486

Choose a tag to compare

Improvements

  • Added schema drift detection feature - #31
  • Added TestCase directory browser with method-level test execution - #32
  • Added extensive demo pages for various templating topics

Full Changelog: 2.7.0...2.8.0

2.7.0

24 Nov 20:46

Choose a tag to compare

Improvements

  • Added plugin linters

Full Changelog: 2.6.0...2.7.0

2.6.0

18 Nov 12:15
f27ee1a

Choose a tag to compare

Improvements

  • Allow parsing raw SQL and generate query builder
convert_query convert_result

Full Changelog: 2.5.0...2.6.0

2.5.0

15 Nov 08:46

Choose a tag to compare

What's Changed

  • Clickable path for the IDE using -v verbose mode
  • Add some more linters with auto-fixing
  • Enable CI run via bin/cake linter --ci
  • Enable plugin mode

Full Changelog: 2.4.0...2.5.0

2.4.0

14 Nov 02:50

Choose a tag to compare

Improvements

Custom Linter Tasks System

Added a flexible linter system for running project-specific code quality checks that don't fit into standard static analysis tools (phpcs, phpstan, rector).

Run them in locally and in your CI.

output

Key Highlights:

  • Extensible: Create custom tasks in App\Command\Linter\Task\
  • Fast: Designed for quick validation (completes in seconds)
  • Configurable: Enable/disable tasks via FQCN-based config

Included Default Tasks

Four production-ready linter tasks are included and enabled by default:

  1. no-mixed-in-templates - Enforce specific type annotations in templates (not mixed)
  2. use-orm-query - Detect incorrect Cake\Database\Query imports (should be Cake\ORM\Query\SelectQuery)
  3. use-base-migration - Flag deprecated AbstractMigration/AbstractSeed usage
  4. single-request-per-test - Validate controller tests have only one request per method

Usage Examples

  # Run all tasks
  bin/cake linter

  # Run with verbose output (shows paths)
  bin/cake linter -v

  # Run specific task
  bin/cake linter --task use-orm-query

  # List available tasks
  bin/cake linter --list

Configuration

Customize tasks in config/app.php:

'TestHelper' => [
    'Linter' => [
        'tasks' => [
            // Add custom tasks
            \App\Command\Linter\Task\MyCustomTask::class,

            // Disable default tasks
            \TestHelper\Command\Linter\Task\UseOrmQueryTask::class => false,
        ],
    ],
],

Full Changelog: 2.3.0...2.4.0

2.3.0

12 Nov 23:29

Choose a tag to compare

Improvements

It is now standalone and with 0 dependencies. No more leaking issues from the application.

  • Test your code from the browser, also directly show coverage
  • Bake your test case classes from the browser
  • More helper tooling
dashboard

Full Changelog: 2.2.1...2.3.0

2.2.1

16 Sep 13:23

Choose a tag to compare

Fixes

  • Fixed IO error usage