public function testContentAccessMode()
 {
     $unrestricted = ElggGroup::CONTENT_ACCESS_MODE_UNRESTRICTED;
     $membersonly = ElggGroup::CONTENT_ACCESS_MODE_MEMBERS_ONLY;
     // if mode not set, open groups are unrestricted
     $this->assertEqual($this->group->getContentAccessMode(), $unrestricted);
     // after first check, metadata is set
     $this->assertEqual($this->group->content_access_mode, $unrestricted);
     // if mode not set, closed groups are membersonly
     $this->group->deleteMetadata('content_access_mode');
     $this->group->membership = ACCESS_PRIVATE;
     $this->assertEqual($this->group->getContentAccessMode(), $membersonly);
     // test set
     $this->group->setContentAccessMode($unrestricted);
     $this->assertEqual($this->group->getContentAccessMode(), $unrestricted);
     $this->group->setContentAccessMode($membersonly);
     $this->assertEqual($this->group->getContentAccessMode(), $membersonly);
 }