Closed dave-mills closed 1 year ago
I need to upgrade composer from v2.1.3 to 2.5.5 in my local env with below command: composer self-update
Then I can run command "composer update" successfully.
I have installed PHP 8.2, when I visit http://aec.test in browser, error occurred with below error message: Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()
I switched back to PHP 8.1, when I visit http://aec.test in browser, I cannot login. Checked that database records of most tables are gone... not sure why they are deleted... I imported staging db mysql dump files then I can login successfully.
Run command "php artisan test" successfully with identical result. I think my local env is now ready.
This PR is to get the system setup so we can write tests with Pest 2.0. That required a few updates, so I took the opportunity to update the entire system to the latest Laravel version (10).
Done:
There is a new
tests/Feature/ExamplePestTest.php
, which has 3 tests:To setup locally.
My local env is now on PHP 8.2. If you're running PHP 8.1, you'll need to run
composer update
, as the current lock file contains a build suited for PHP 8.2.Then you should be able to run the tests with php artisan test and get::