create([ 'key' => 'core', ]); $this->assertSame('CORE', $project->fresh()->key); } /** * Ensure the project seeder creates the expected starter projects. */ public function test_project_seeder_creates_projects(): void { $this->seed(ProjectSeeder::class); $this->assertDatabaseHas('projects', [ 'name' => 'Core Platform', 'key' => 'CORE', ]); $this->assertDatabaseHas('projects', [ 'name' => 'Authentication', 'key' => 'AUTH', ]); $this->assertDatabaseHas('projects', [ 'name' => 'Operations', 'key' => 'OPS', ]); } }