Backend API tests fail - Redis extension not available #20
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
All 15 authentication API tests fail with error:
Class "Redis" not found
Details
Root Cause
The .env file configures CACHE_STORE=redis and REDIS_CLIENT=phpredis, but phpunit.xml only overrides CACHE_STORE=array without disabling Redis entirely.
Proposed Solution
Add to phpunit.xml:
<env name="REDIS_CLIENT" value="null"/\u003e
<env name="REDIS_HOST" value="null"/\u003e
Test Output
Tests: 15 failed, 2 passed (2 assertions)