Fix phpunit doc missing crucial step of installing GCS

I tried following the steps when running, for https://github.com/PrivateBin/PrivateBin/pull/1421, but this crucial one step is missing.

Maybe more was missing, most tests failed so hmm… but I only wanted it for the SRI generation and this was hard enough.

(And no, I did not feel like trying to run a container in a [dev]container, so these manual steps should better work.)

Maybe we can improve that further here, I the things I've noticed in this or the other PR.
This commit is contained in:
rugk 2024-10-18 02:18:45 +02:00 committed by GitHub
parent 702831ea38
commit 5b245a3f85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -43,6 +43,11 @@ Example for Debian and Ubuntu:
$ sudo apt install phpunit php-gd php-sqlite3 php-xdebug
```
Because the unit tests depend on this, you also need to install the optional. Otherwise they won't run:
```console
composer require google/cloud-storage
```
To run the tests, change into the `tst` directory and run phpunit:
```console