Seed Care demos from shared DemoWorld with staff roles.
Deploy Ladill Care / deploy (push) Successful in 1m0s
Deploy Ladill Care / deploy (push) Successful in 1m0s
Patients, branches, and org identity now match suite continuity keys; staff Members are created for training SSO without login reseed. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -75,4 +75,19 @@ class DemoLoginReseederTest extends TestCase
|
||||
app(DemoLoginReseeder::class)->maybeResetAfterLogin($user);
|
||||
$this->app->terminate();
|
||||
}
|
||||
|
||||
public function test_it_skips_staff_demo_logins(): void
|
||||
{
|
||||
$user = User::create([
|
||||
'public_id' => 'demo-pro-doctor-pid',
|
||||
'name' => 'Dr. Kwame Mensah (Pro)',
|
||||
'email' => 'demo-pro-doctor@ladill.com',
|
||||
]);
|
||||
|
||||
$seeder = $this->mock(DemoTenantSeeder::class);
|
||||
$seeder->shouldReceive('seed')->never();
|
||||
|
||||
app(DemoLoginReseeder::class)->maybeResetAfterLogin($user);
|
||||
$this->app->terminate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user