Goal-Calibration/tests/Unit
Yisroel Baum bb6bd7cbb3
use FakePasswordHasher in tests to eliminate bcrypt cost
Add a trivial prefix-based PasswordHasher fake and inject it into the
three test files that exercise CreateUser or AuthenticateUser. Drops
the full phpunit suite from ~7.4s to ~30ms (about 224x) without
losing coverage: the round-trip through hash/verify still validates
that CreateUser stores something other than the plaintext and that
AuthenticateUser only succeeds on a matching hash.

CreateUserTest is also refactored to use a setUp method, matching
the pattern already used in AuthenticateUserTest and AuthControllerTest.
2026-04-26 09:06:26 +03:00
..
Auth test admin middleware 2026-04-24 13:26:20 +03:00
Node/UseCases test bulk create nodes throws if count is less than one 2026-04-19 23:36:18 +03:00
Plan/UseCases update tests for user password hash 2026-04-24 13:19:51 +03:00
ScheduledNode/UseCases move instantiation of date time immutable to use case. request gets a string 2026-04-23 20:09:17 +03:00
Text/UseCases test create text use case validates null name 2026-04-19 23:11:43 +03:00
User use FakePasswordHasher in tests to eliminate bcrypt cost 2026-04-26 09:06:26 +03:00