Ejemplo n.º 1
0
 public function __construct(AccessControlGroupObjectBuilder $builder)
 {
     parent::__construct($builder->getObjectID());
     $this->owner = $builder->getOwner();
     $this->displayName = $builder->getDisplayName();
     $this->members = $builder->getMembers();
     asort($this->members);
 }
Ejemplo n.º 2
0
 public function testAccessControlGroup()
 {
     $group = (new AccessControlGroupObjectBuilder())->objectID(UOID::createUOID())->owner(Sonic::getUserGlobalID())->displayName('testgroupname')->members(array('28B6TE8T9NUO202C5NZIUTNQSP88E70B8JAWH4FQ58OJOB8LIF'))->build();
     $this->assertTrue($group->validate());
     $this->assertEquals($group, AccessControlGroupObjectBuilder::buildFromJSON($group->getJSONString()));
 }