Welcome Guest, Not a member yet? Register   Sign In
How to run a single seeder during unit test?
#2

Database seeds are simple classes that must have a run() method, and extend CodeIgniter\Database\Seeder. Within the run() the class can create any form of data that it needs to. It has access to the database connection and the forge through $this->db and $this->forge, respectively. Seed files must be stored within the app/Database/Seeds directory. The name of the file must match the name of the class.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: How to run a single seeder during unit test? - by InsiteFX - 02-25-2023, 01:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB