Skip to content

Add tests for mail_class tracking and forMailClass scope - #80

Merged
markvaneijk merged 1 commit into
mainfrom
test/mail-class-tracking
Mar 24, 2026
Merged

Add tests for mail_class tracking and forMailClass scope#80
markvaneijk merged 1 commit into
mainfrom
test/mail-class-tracking

Conversation

@markvaneijk

Copy link
Copy Markdown
Contributor

Summary

  • Adds test fixture TestMailable class for use in mail_class tests
  • Verifies mail_class is stored as FQCN when sending via a Mailable class
  • Verifies mail_class is null when sending via Mail::send() with a closure
  • Verifies Mail::forMailClass() query scope correctly filters by class name

Test plan

  • Send a mail using a Mailable class and verify mail_class is stored as the FQCN
  • Send a mail using Mail::send() with a closure and verify mail_class is null
  • Verify Mail::forMailClass('...') query scope works

🤖 Generated with Claude Code

Verifies that mail_class is stored as the FQCN when sending via a
Mailable class, is null when sending via Mail::send() with a closure,
and that the forMailClass scope correctly filters by class name.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@markvaneijk
markvaneijk merged commit 7f9fade into main Mar 24, 2026
4 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.

1 participant