I want to mention that while I was writing my own tests, they were not running. The filename must end with 'Test,' and the functions within the class must begin with 'test' (respecting the lowercase and uppercase)
my tests keep failing and i get this massage "Expected response status code [200] but received 500.
Failed asserting that 500 is identical to 200.", also when i register from breeze dashboard and i go to '/products' it deletes my new accoute from the database and if i update the page i get this massage "Attempt to read property "name" on null" (this massage desipear when i register and login to the account but when im at the '/produtc' page and refresh it, it happens again and the accoute get deleted and i get the massage agian)
I want to mention that while I was writing my own tests, they were not running. The filename must end with 'Test,' and the functions within the class must begin with 'test' (respecting the lowercase and uppercase)
my tests keep failing and i get this massage "Expected response status code [200] but received 500. Failed asserting that 500 is identical to 200.", also when i register from breeze dashboard and i go to '/products' it deletes my new accoute from the database and if i update the page i get this massage "Attempt to read property "name" on null" (this massage desipear when i register and login to the account but when im at the '/produtc' page and refresh it, it happens again and the accoute get deleted and i get the massage agian)
Ok its simply due to NavBar trquesting Auth so when i put the navbar.blade as comment it worked
If you have a "Expected response status code [200] but received 500"
just make your responses like this
This is my error message:
Did you run
php artisan migrateafter you created the migrations file?i did but forcsome reason artisan wants to test testing database instead of laravel db. Migration populated laravel db