'user']); $response = $this->post('/api/v1/register', [ 'name' => 'Test User', 'email' => 'test@example.com', 'password' => 'password', 'password_confirmation' => 'password', ]); $response->assertCreated(); $response->assertJson(['ok' => true], true); $role->delete(); } }