Skip to content

fix: 5 bugs found during test coverage work#52

Open
JoshSalway wants to merge 1 commit intolaravel:mainfrom
JoshSalway:fix/bugs-found-during-testing
Open

fix: 5 bugs found during test coverage work#52
JoshSalway wants to merge 1 commit intolaravel:mainfrom
JoshSalway:fix/bugs-found-during-testing

Conversation

@JoshSalway
Copy link

Summary

Not fixed in this PR: #47 (3 create commands can't run non-interactively) — needs design discussion since adding CLI options changes the command interface.

Test plan

  • phpstan analyse passes with no errors
  • pest test suite passes (31 tests, 32 assertions)
  • Verify list commands return FAILURE exit code with JSON error message when results are empty
  • Verify domain:create works in non-interactive mode with default wildcard and verification method
  • Verify database:delete no longer swallows non-request exceptions
  • Verify cache:delete --json and bucket:delete --json are recognized options
  • Verify background-process:create worker defaults work with corrected method name

🤖 Generated with Claude Code

- Fix empty list commands returning SUCCESS in JSON mode by checking
  for empty results before calling outputJsonIfWanted() (laravel#44)
- Add nonInteractively() defaults for wildcard_enabled and
  verification_method in DomainCreate (laravel#45)
- Change DatabaseDelete catch from Throwable to
  Saloon\Exceptions\Request\RequestException (laravel#46)
- Add missing --json option to CacheDelete and BucketDelete (laravel#48)
- Fix getWorkerDefult typo to getWorkerDefault in
  BackgroundProcessCreate (laravel#49)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JoshSalway

This comment was marked as spam.

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