Goal-Calibration/tests/Fakes
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
..
FakeClock.php add fake clock 2026-04-24 13:23:46 +03:00
FakeNodeRepository.php fix get by text id impl 2026-03-18 20:35:33 +02:00
FakePasswordHasher.php use FakePasswordHasher in tests to eliminate bcrypt cost 2026-04-26 09:06:26 +03:00
FakePlanRepository.php add find method to plan 2026-02-25 10:17:13 +02:00
FakeScheduledNodeRepository.php test that only nodes which are not parents are scheduled 2026-03-21 20:01:11 +02:00
FakeSessionRepository.php add fake session repository 2026-04-24 13:22:06 +03:00
FakeTextRepository.php php cs fixer 2026-04-19 23:07:48 +03:00
FakeTokenGenerator.php add fake token generator 2026-04-24 13:23:23 +03:00
FakeUserRepository.php store password hash in fake user repo 2026-04-24 13:19:00 +03:00