From 337929b2fa97b95cc1049f93e147cbecbe2d2b7b Mon Sep 17 00:00:00 2001 From: Gregory Silva Date: Thu, 31 Aug 2023 17:35:32 -0700 Subject: [PATCH 1/6] livewire 3 update --- composer.json | 12 +++++++----- resources/views/admin/create-announcement.blade.php | 8 ++++---- tests/Setup/TestCase.php | 6 +++--- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/composer.json b/composer.json index 0c2a976..b6268a3 100644 --- a/composer.json +++ b/composer.json @@ -12,14 +12,16 @@ } ], "require": { - "php": "^7.4 || ^8.0", - "livewire/livewire": "^2.0" + "php": "^8.2", + "livewire/livewire": "^3.0.1" }, "require-dev": { "squizlabs/php_codesniffer": "^3.7", - "pestphp/pest-plugin-livewire": "^1.0", - "orchestra/testbench": "^6.0", - "pestphp/pest-plugin-faker": "^1.0" + "pestphp/pest-plugin-livewire": "^2.1", + "orchestra/testbench": "^8.10", + "pestphp/pest-plugin-faker": "^2.0", + "brianium/paratest": "^7.2", + "pestphp/pest": "2.16" }, "autoload": { "psr-4": { diff --git a/resources/views/admin/create-announcement.blade.php b/resources/views/admin/create-announcement.blade.php index 8ef2068..35f6f25 100644 --- a/resources/views/admin/create-announcement.blade.php +++ b/resources/views/admin/create-announcement.blade.php @@ -24,22 +24,22 @@
- +
- +
- +
- +
diff --git a/tests/Setup/TestCase.php b/tests/Setup/TestCase.php index 03c1255..376f583 100644 --- a/tests/Setup/TestCase.php +++ b/tests/Setup/TestCase.php @@ -7,7 +7,7 @@ use Livewire\LivewireServiceProvider; use MBarlow\Megaphone\MegaphoneServiceProvider; use Orchestra\Testbench\TestCase as BaseTestCase; -use function Pest\Faker\faker; +use function Pest\Faker\fake; class TestCase extends BaseTestCase { @@ -22,7 +22,7 @@ protected function setUp(): void protected function createTestUser(): User { - $faker = faker(); + $faker = fake(); $user = new User(); $user->name = $faker->name; $user->email = $faker->email; @@ -34,7 +34,7 @@ protected function createTestUser(): User protected function createTestNotification($user, $notifClass) { - $faker = faker(); + $faker = fake(); $notification = new $notifClass( $faker->sentence, From b323ed432df64679351ed5a0e7e5bd80bea905eb Mon Sep 17 00:00:00 2001 From: Mike Barlow Date: Sun, 10 Sep 2023 22:45:42 +0100 Subject: [PATCH 2/6] Updating php unit config. Fixing tests --- phpunit.xml | 23 ++++++++++--------- .../views/admin/create-announcement.blade.php | 2 +- tests/MegaphoneComponentTest.php | 5 ++-- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index 79fcf38..6bf0384 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,13 +1,14 @@ - - - - src/ - - - - - tests/ - - + + + + + tests/ + + + + + src/ + + diff --git a/resources/views/admin/create-announcement.blade.php b/resources/views/admin/create-announcement.blade.php index 35f6f25..9b780d0 100644 --- a/resources/views/admin/create-announcement.blade.php +++ b/resources/views/admin/create-announcement.blade.php @@ -12,7 +12,7 @@