From 7358962f3748295ff419a87f09efe9eeead6a7f0 Mon Sep 17 00:00:00 2001 From: railken Date: Fri, 29 Mar 2024 20:30:58 +0000 Subject: [PATCH] Apply style changes --- composer.json | 3 ++- tests/BaseTest.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 7afe659..0aac631 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,8 @@ "phpunit/phpunit": "*", "orchestra/testbench": "*", "amethyst/foo": "0.3.*", - "amethyst/user": "0.3.*" + "amethyst/user": "0.3.*", + "friendsofphp/php-cs-fixer": "^3.52" }, "autoload": { "psr-4" : { diff --git a/tests/BaseTest.php b/tests/BaseTest.php index fc2b929..bc70f1a 100644 --- a/tests/BaseTest.php +++ b/tests/BaseTest.php @@ -31,7 +31,7 @@ protected function setUp(): void Foo::resolveRelationUsing('ownables', function (Foo $model) { return $model->morphMany(Ownable::class, 'ownable'); }); - + $this->artisan('mapper:generate'); \Railken\Lem\Repository::resetScopes(); \Railken\Lem\Repository::addScope(new \Amethyst\Permissions\PermissionScope());