[TESTS] Fix DataFixtures

This commit is contained in:
2022-03-06 20:16:09 +00:00
parent 9a0c74cb0c
commit a37ce86d05
3 changed files with 77 additions and 18 deletions

View File

@@ -21,6 +21,7 @@ declare(strict_types = 1);
namespace Component\Group\Entity;
use App\Core\ActorLocalRoles;
use App\Core\Entity;
use DateTimeInterface;
@@ -44,7 +45,7 @@ class GroupMember extends Entity
// @codeCoverageIgnoreStart
private int $group_id;
private int $actor_id;
private int $roles;
private int $roles = ActorLocalRoles::VISITOR;
private ?string $uri = null;
private DateTimeInterface $created;
private DateTimeInterface $modified;
@@ -125,7 +126,7 @@ class GroupMember extends Entity
'fields' => [
'group_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'Actor.id', 'multiplicity' => 'one to one', 'name' => 'group_member_group_id_fkey', 'not null' => true, 'description' => 'foreign key to group table'],
'actor_id' => ['type' => 'int', 'foreign key' => true, 'target' => 'Actor.id', 'multiplicity' => 'one to one', 'name' => 'group_member_actor_id_fkey', 'not null' => true, 'description' => 'foreign key to actor table'],
'roles' => ['type' => 'int', 'not null' => true, 'description' => 'Bitmap of permissions this actor has'],
'roles' => ['type' => 'int', 'not null' => true, 'default' => ActorLocalRoles::VISITOR, 'description' => 'Bitmap of permissions this actor has'],
'uri' => ['type' => 'varchar', 'length' => 191, 'description' => 'universal identifier'],
'created' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was created'],
'modified' => ['type' => 'timestamp', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'],