mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-07 17:04:30 +02:00
Improved code style of tests
This commit is contained in:
parent
5629215ce4
commit
684334ba22
73 changed files with 196 additions and 38 deletions
|
@ -26,6 +26,7 @@ use Doctrine\ORM\Mapping as ORM;
|
|||
/**
|
||||
* This class is used to store the permissions of a user.
|
||||
* This has to be an embeddable or otherwise doctrine could not track the changes of the underlying data array (which is serialized to JSON in the database)
|
||||
* @see \App\Tests\Entity\UserSystem\PermissionDataTest
|
||||
*/
|
||||
#[ORM\Embeddable]
|
||||
final class PermissionData implements \JsonSerializable
|
||||
|
|
|
@ -57,6 +57,7 @@ use Jbtronics\TFAWebauthn\Model\TwoFactorInterface as WebauthnTwoFactorInterface
|
|||
/**
|
||||
* This entity represents a user, which can log in and have permissions.
|
||||
* Also, this entity is able to save some information about the user, like the names, email-address and other info.
|
||||
* @see \App\Tests\Entity\UserSystem\UserTest
|
||||
*/
|
||||
#[UniqueEntity('name', message: 'validator.user.username_already_used')]
|
||||
#[ORM\Entity(repositoryClass: UserRepository::class)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue