From dcd63d9fc7f61be258a30c0d3da81023993d43fd Mon Sep 17 00:00:00 2001 From: bigboss Date: Sun, 5 Jan 2025 20:31:16 -0300 Subject: [PATCH] fix tests --- tests/Application/Entity/AdminUser.php | 6 ++---- tests/Application/config/packages/doctrine.yaml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/Application/Entity/AdminUser.php b/tests/Application/Entity/AdminUser.php index 6c5e482..cc5dc33 100644 --- a/tests/Application/Entity/AdminUser.php +++ b/tests/Application/Entity/AdminUser.php @@ -9,10 +9,8 @@ use Odiseo\SyliusRbacPlugin\Entity\AdministrationRoleAwareTrait; use Sylius\Component\Core\Model\AdminUser as BaseAdminUser; -/** - * @ORM\Entity - * @ORM\Table(name="sylius_admin_user") - */ +#[ORM\Entity] +#[ORM\Table(name: 'sylius_admin_user')] class AdminUser extends BaseAdminUser implements AdministrationRoleAwareInterface { use AdministrationRoleAwareTrait; diff --git a/tests/Application/config/packages/doctrine.yaml b/tests/Application/config/packages/doctrine.yaml index dc7059b..0c7d79a 100644 --- a/tests/Application/config/packages/doctrine.yaml +++ b/tests/Application/config/packages/doctrine.yaml @@ -19,7 +19,7 @@ doctrine: mappings: App: is_bundle: false - type: annotation + type: attribute dir: '%kernel.project_dir%/Entity' prefix: 'Tests\Odiseo\SyliusRbacPlugin\Application\Entity' alias: App