protected static function init()
 {
     self::$directory = \Stormpath\Resource\Directory::instantiate(array('name' => makeUniqueName('GroupTest Main Directory')));
     self::createResource(\Stormpath\Resource\Directory::PATH, self::$directory);
     self::$group = \Stormpath\Resource\Group::instantiate(array('name' => makeUniqueName('GroupTest Main Group'), 'description' => 'Main Group Description'));
     self::$directory->createGroup(self::$group);
     self::$inited = true;
 }
예제 #2
0
 protected static function init()
 {
     self::$directory = \Stormpath\Resource\Directory::instantiate(array('name' => 'Main Directory' . md5(time() . microtime() . uniqid())));
     self::createResource(\Stormpath\Resource\Directory::PATH, self::$directory);
     self::$group = \Stormpath\Resource\Group::instantiate(array('name' => 'Main Group' . md5(time() . microtime() . uniqid()), 'description' => 'Main Group Description'));
     self::$directory->createGroup(self::$group);
     self::$inited = true;
 }