nixos/tests/php: add apcu to php to actually test whether extensions are properly loaded
This commit is contained in:
@@ -50,7 +50,7 @@ import ../make-test-python.nix ({pkgs, lib, php, ...}: {
|
||||
assert "PHP Version ${php.version}" in response, "PHP version not detected"
|
||||
|
||||
# Check so we have database and some other extensions loaded
|
||||
for ext in ["json", "opcache", "pdo_mysql", "pdo_pgsql", "pdo_sqlite"]:
|
||||
for ext in ["json", "opcache", "pdo_mysql", "pdo_pgsql", "pdo_sqlite", "apcu"]:
|
||||
assert ext in response, f"Missing {ext} extension"
|
||||
machine.succeed(f'test -n "$(php -m | grep -i {ext})"')
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user