Skip to content

Tests for MakeUserCommand #268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 14, 2025
Merged

Conversation

danjohnson95
Copy link
Contributor

This is based off a recent conversation in Discord - frank42 mentioned that a user is being created as a non-admin even when they said "Yes" to the admin prompt.

I can't replicate that particular bug, but I thought it'd be good to have some tests on this command anyway.

This also fixes a bug where if the arguments are passed directly to the command, and you're creating a non-admin user, the command would still ask if the user should be an admin.

@jbrooksuk jbrooksuk merged commit f884a79 into cachethq:main Apr 14, 2025
31 checks passed
@jbrooksuk jbrooksuk added this to the v3.0 milestone Apr 14, 2025
@jbrooksuk
Copy link
Member

Thanks @danjohnson95!

jbrooksuk added a commit that referenced this pull request May 11, 2025
* main: (38 commits)
  Fixes
  Fix date order for past incidents in history (#237) (#255)
  Add Koren translation to config
  Add ko translation (#265)
  Add Edit Profile page (#276)
  Bump vite from 5.4.18 to 5.4.19 (#277)
  Add coverage testing (#260)
  Add trusted proxies to Cachet config
  Add comment
  Bump vite from 5.4.14 to 5.4.18 (#273)
  Bump minor larastan version (#271)
  Compile Assets
  Tests for MakeUserCommand (#268)
  Fix code styling
  Fix PHPStan errors
  Complete french translations (#269)
  Added spanish (Spain) translations (#266)
  Set `NIGHTWATCH_ENABLED` to `false` in CI
  Use parallel testing and lint as part of testing (#259)
  Remove unused metric points update route
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants