Ejemplo n.º 1
0
 /**
  * Test image priority
  */
 public function testImagePriority()
 {
     $user = GalleryTestLib::createUser();
     $image = GalleryTestLib::createImage($user->guid);
     $this->assertTrue(isset($image->priority));
     $image->delete();
 }
Ejemplo n.º 2
0
 /**
  * Called before each test method.
  */
 public function setUp()
 {
     $this->owner = GalleryTestLib::createUser();
     $this->friend = GalleryTestLib::createUser();
     $this->owner->addFriend($this->friend->getGUID());
     $this->third_party = GalleryTestLib::createUser();
     $this->group_owner = GalleryTestLib::createUser();
     $this->member_in_group = GalleryTestLib::createUser();
     $this->group = GalleryTestLib::createGroup($this->group_owner->getGUID());
     $this->group->join($this->owner);
     $this->group->join($this->member_in_group);
     $this->user_album = GalleryTestLib::createAlbum($this->owner->getGUID(), $this->owner->getGUID());
     $this->group_album = GalleryTestLib::createAlbum($this->owner->getGUID(), $this->group->getGUID());
     $this->ia = elgg_set_ignore_access(false);
 }