Skip to content

Bug: DB Seeder may use wrong DB connection during testing #9885

Description

@R-W-C

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions