add a workaround for make_self_url() when invoked off /api/ endpoint, add unit tests for this method

This commit is contained in:
Andrew Dolgov
2023-10-24 22:27:27 +03:00
parent de2830b241
commit 69c1c62992
4 changed files with 133 additions and 13 deletions

6
utils/phpunit.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
docker run --rm -v $(pwd):/app \
--workdir /app registry.fakecake.org/ci/php8.2-alpine:3.18 php82 -d memory_limit=-1 ./vendor/bin/phpunit