AlessioGiacobbe wrote a reply+100 XP
6mos ago
Hi, i just downgraded, but still get this error
AlessioGiacobbe wrote a reply+100 XP
6mos ago
i'll downgrade and let you know, many thanks
AlessioGiacobbe liked a comment+100 XP
6mos ago
It should work.
I already had a similar problem, I have solved it by clearing the cache.
AlessioGiacobbe liked a comment+100 XP
6mos ago
What's the value for <env name="DB_DATABASE" value="..."/> ?
AlessioGiacobbe wrote a reply+100 XP
6mos ago
<env name="DB_DATABASE" value="appname_test"/>
AlessioGiacobbe started a new conversation+100 XP
6mos ago
hello! i'm running laravel 12 and testing with PHPunit, i have configured it like so in my phpunit.xml:
<env name="DB_CONNECTION" value="pgsql_testing"/>
and in my database.php config:
'pgsql_testing' => [
'driver' => 'pgsql',
'database' => env('DB_DATABASE', '') . '_test',
i use some tests with the RefreshDatabase trait, but when i run my tests my main db gets wiped together with the tests database. i don't understand what i am missing. thanks.
AlessioGiacobbe wrote a reply+100 XP
6mos ago
Thanks, I’m using php unit, and that was a typo i did in this post only, I get that error writing it correctly.
AlessioGiacobbe started a new conversation+100 XP
6mos ago
hello! i'm trying to run my integration and unit tests in parallel, i have followed the official guide and installed paratest as a dev dependency. But when i try to run them with the --parallel parameter i get
NunoMaduro\Collision\Adapters\Laravel\Exceptions\RequirementsException
Running Collision 8.x artisan test command in parallel requires at least ParaTest (brianium/paratest) 7.x.
I tried searching online and i don't understand why i get this. i'm running laravel 12 on php 8.4 and phpunit.