bashy's avatar
Level 65

After upgrading to 5.5 PHPUnit fails with SQLite

I'm getting this error on my Laravel 5.5 branch. I use SQLite and it works if I switch to my Laravel 5.4 branch. Permissions seem to be reset on the database.sqlite file if I set it to 777 so I don't think that's it (having looked around).

SQLSTATE[HY000]: General error: 8 attempt to write a readonly database

PHPUnit gets updated since 5.5 comes with "phpunit/phpunit": "~6.0"

0 likes
4 replies
Dry7's avatar

check folder of database.sqlite permissions

bashy's avatar
Level 65

@Dry7 Don't think you read the thread fully.

The same database.sqlite works with 5.7.21 but not 6.3.0. I set the permissions to 777 but it resets it to 644 when I run vendor/bin/phpunit.

bashy's avatar
Level 65

@dash8x Least that's an option. For now I've just removed PHPUnit from CI :P

Please or to participate in this conversation.