public function testInitializeRole() { $acl = new LeanACL(); $acl->setPublicWriteAccess(true); // so it can be destroyed $role = new LeanRole("guest", $acl); $role->save(); $this->assertNotEmpty($role->getObjectId()); $childrenUsers = $role->getUsers(); $this->assertTrue($childrenUsers instanceof LeanRelation); $childrenRoles = $role->getRoles(); $this->assertTrue($childrenRoles instanceof LeanRelation); $role->destroy(); }