Unit Test fails because the SUT tries to log an error.
When running a test that asserts an error is returned the SUT also tries to log an error but it cant because
There is no existing directory at storage/logs and its not buildable: Permission denied.
is there a way to suppress writing logs when running tests in laravel?
Run sudo chmod -R 777 ./storage from your project root and you should be fine.
doesn't seem to have done the trick.
drwxrwxrwx barry.mcmahon Users storage
Do ls -ltron your project root and then on the storage folder and show the output.
root
drwxrwxrwx 8 root root 256 May 14 11:40 storage
storage
-rwxrwxrwx 1 root root 812 May 2 13:26 oauth-public.key
-rwxrwxrwx 1 root root 3292 May 2 13:26 oauth-private.key
drwxrwxrwx 5 root root 160 May 20 14:25 framework
drwxrwxrwx 3 root root 96 May 20 14:25 app
drwxrwxrwx 4 root root 128 Jun 5 09:28 logs
drwxrwxrwx 47 root root 1504 Jun 5 11:14 debugbar
Please or to participate in this conversation.