2f3fd laravel 11 upgrade (#436)

* fix password reset bug

* upgrade to  laravel 11

* composer.lock

* fix migration issues

* use ValidationRule Contract

* rename password_resets table

* implemented casts as protected function

* update env variables

* fix optional property

* fix validation issues

* use <env> on php unit xml

* fix pint

* cmposer.lock

* composer json fixes

* fix composer dependencies, remove  faker

* remove unused class

* remove test class

* fix default value for mysql migration

* linting

* expression syntax fix

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Favour Olayinka
2024-06-10 15:10:14 +01:00
committed by GitHub
parent 1875faa123
commit bec8e86b59
37 changed files with 2078 additions and 3158 deletions

View File

@@ -20,7 +20,7 @@ it('can hide branding on upgrade', function () {
// User subscribes
$user->subscriptions()->create([
'name' => 'default',
'type' => 'default',
'stripe_id' => Str::random(),
'stripe_status' => 'active',
'stripe_price' => Str::random(),

View File

@@ -2,8 +2,6 @@
use App\Models\User;
use function Pest\Faker\faker;
it('can register', function () {
$this->postJson('/register', [
'name' => 'Test User',
@@ -36,12 +34,12 @@ it('cannot register with existing email', function () {
it('cannot register with disposable email', function () {
// Select random email
$email = faker()->randomElement([
$email = [
'dumliyupse@gufum.com',
'kcs79722@zslsz.com',
'pfizexwxtdifxupdhr@tpwlb.com',
'qvj86ypqfm@email.edu.pl',
]);
][rand(0, 3)];
$this->postJson('/register', [
'name' => 'Test disposable',

View File

@@ -169,7 +169,7 @@ trait TestHelpers
$user = $this->createUser();
$user->subscriptions()->create([
'name' => 'default',
'type' => 'default',
'stripe_id' => Str::random(),
'stripe_status' => 'active',
'stripe_price' => Str::random(),