Thanks to visit codestin.com
Credit goes to github.com

Skip to content

minor: remove useless Factories trait#1067

Merged
nikophil merged 1 commit into
zenstruck:2.9.xfrom
nikophil:minor/remove-useless-factories-traits
Jan 22, 2026
Merged

minor: remove useless Factories trait#1067
nikophil merged 1 commit into
zenstruck:2.9.xfrom
nikophil:minor/remove-useless-factories-traits

Conversation

@nikophil
Copy link
Copy Markdown
Member

@nikophil nikophil commented Jan 22, 2026

We can safely remove Factories trait on all test with #[RequiresPhpunitExtension(FoundryExtension::class)]

We can also replace RequiresOrm / RequiresMongo traits in favor of #[RequiresEnvironmentVariable('DATABASE_URL')] / #[RequiresEnvironmentVariable('MONGO_URL')] when #[RequiresPhpunit('>=12')] is used

@nikophil nikophil force-pushed the minor/remove-useless-factories-traits branch from 1860315 to 067a907 Compare January 22, 2026 16:10
@nikophil nikophil merged commit a0c5589 into zenstruck:2.9.x Jan 22, 2026
78 of 79 checks passed
@nikophil nikophil deleted the minor/remove-useless-factories-traits branch January 22, 2026 16:34
@nikophil nikophil added this to the 2.9 milestone Jan 30, 2026
nikophil added a commit that referenced this pull request Feb 2, 2026
nikophil added a commit that referenced this pull request Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant