mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Test Infrastructure:
- Modernize phpunit.xml (bootstrap, source block, Laravel 12 env vars)
- Configure tests/Pest.php with pest()->extend(TestCase::class)->in('Feature')
- Add docker-compose.test.yml (Redis for test suite)
- Add composer test/test:quick scripts
- Rename CACHE_DRIVER to CACHE_STORE across config (backwards compatible)
- Update .env.testing for in-memory SQLite + Docker Redis
Test Coverage (190 tests):
- CriticalRoutes: public routes, auth routes, API endpoints, middleware, schedule
- Auth/LoginTest: login, logout, rate limiting, redirect behavior
- Auth/RegisterTest: registration flow, validation, disabled registration
- Auth/PasswordResetTest: reset request, token validation, password update
- Auth/TwoFactorTest: 2FA checkpoint, setup behind password confirmation
- Auth/PasswordConfirmationTest: sudo mode flow via Laravel password.confirm
- Api/ScopeTest: scope enforcement, public endpoints, admin access
Bugs Fixed:
- Fix unauthenticated API returning 500 instead of 401 (AuthenticationException
not handled in custom exception renderer in bootstrap/app.php)
- Replace custom DangerZone middleware with Laravel password.confirm
- Add HasFactory trait to Profile model for test factories
Bugs Documented (known-bugs group):
- Registration crashes with str_ends_with TypeError (RegisterController:82)
- OAuth routes use legacy array syntax causing ReflectionFunction TypeError
|
4 weeks ago | |
|---|---|---|
| .. | ||
| api.php | 2 years ago | |
| app.php | 4 weeks ago | |
| auth.php | 4 weeks ago | |
| autospam.php | 3 years ago | |
| backup.php | 2 years ago | |
| broadcasting.php | 4 years ago | |
| cache.php | 4 weeks ago | |
| captcha.php | 3 years ago | |
| cors.php | 1 month ago | |
| costar.php | 7 years ago | |
| database.php | 4 weeks ago | |
| debugbar.php | 8 years ago | |
| dotenv-editor.php | ||
| exp.php | 1 month ago | |
| federation.php | 2 years ago | |
| filesystems.php | 10 months ago | |
| groups.php | 2 years ago | |
| hashids.php | ||
| hashing.php | 8 years ago | |
| horizon.php | 2 years ago | |
| image-optimizer.php | 1 year ago | |
| image.php | 4 weeks ago | |
| import.php | 2 years ago | |
| instance.php | 1 month ago | |
| laravel-ffmpeg.php | 3 years ago | |
| ldap.php | 4 weeks ago | |
| livestreaming.php | 4 years ago | |
| logging.php | 7 months ago | |
| mail.php | 7 months ago | |
| media.php | 2 years ago | |
| passport.php | 3 years ago | |
| pixelfed.php | 1 month ago | |
| portfolio.php | 4 years ago | |
| pulse.php | 2 years ago | |
| purify.php | 4 weeks ago | |
| queue.php | 4 years ago | |
| remote-auth.php | 1 year ago | |
| routes.php | 7 years ago | |
| security.php | 3 years ago | |
| services.php | 2 years ago | |
| session.php | 3 years ago | |
| snowflake.php | 2 years ago | |
| telescope.php | 4 years ago | |
| trending.php | 4 years ago | |
| trustedproxy.php | 1 month ago | |
| view.php | ||
| webpush.php | 3 years ago | |
| websockets.php | 4 years ago | |