Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix InteractsWithDatabase::seed method #54697

Draft
wants to merge 1 commit into
base: 11.x
Choose a base branch
from
Draft

Conversation

CZYK
Copy link

@CZYK CZYK commented Feb 19, 2025

This will fix the The "--class" option does not exist error I received while calling $this->seed() from a TestCase.

Symfony\Component\Console\Exception\InvalidOptionException: The "--class" option does not exist.

The "--class" option does not exist
@CZYK CZYK changed the title 🐛 Fix InteractsWithDatabase Seed method 🐛 Fix InteractsWithDatabase::seed method Feb 19, 2025
@crynobone crynobone marked this pull request as draft February 19, 2025 11:09
@crynobone
Copy link
Member

crynobone commented Feb 19, 2025

Can you create a bug report with reproducing repository?

The option clearly exists:

['class', null, InputOption::VALUE_OPTIONAL, 'The class name of the root seeder', 'Database\\Seeders\\DatabaseSeeder'],

@CZYK
Copy link
Author

CZYK commented Feb 19, 2025

@crynobone thanks. I will do it as soon as I am back from my holiday (March 3th)

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.

2 participants