-
Notifications
You must be signed in to change notification settings - Fork 2k
Bug: DB Seeder may use wrong DB connection during testing #9885
Copy link
Copy link
Closed
Labels
bugVerified issues on the current code behavior or pull requests that will fix themVerified issues on the current code behavior or pull requests that will fix them
Description
PHP Version
8.3
CodeIgniter4 Version
4.6
CodeIgniter4 Installation Method
Composer (using codeigniter4/appstarter)
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Environment
development
Database
MySQL 8.3
What happened?
Command: php spark seed:tests --dbgroup tests
Parameter --dbgroup is not respected. CI’s Seeder runner is always instantiating a seeder with the default connection, even when the seeder is created via Database::seeder('tests').
Steps to Reproduce
Run command
php spark seed:tests --dbgroup tests
Expected Output
Parameter --dbgroup is respected.
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugVerified issues on the current code behavior or pull requests that will fix themVerified issues on the current code behavior or pull requests that will fix them