Class Ansel_GalleryTest

Description

Unit tests for Ansel_Gallery / Ansel_Gallery_Share stuff.

NOTE: These test operate on the globally configured database. While there should be no destructive actions taken against existing data, it does modify the database so you should be sure to have a backup of any important tables before running these tests on production systems.

Located in /lib/tests/GalleryTest.php (line 17)

PHPUnit_Framework_TestCase
   |
   --Ansel_TestBase
      |
      --Ansel_GalleryTest
Method Summary
 static void newGalleryData ()
 void setUp ()
 void test_galleryCRUD ( $attributes)
Methods
static newGalleryData (line 148)

Test provider to provide test gallery data for gallery creation.

  • access: public
static void newGalleryData ()
setUp (line 19)
void setUp ()

Redefinition of:
Ansel_TestBase::setUp()
test_galleryCRUD (line 33)

Tests entire lifecycle of an Ansel_Gallery. Checks for proper creation and Ansel_Gallery_Share being set correctly, checks proper setting of gallery attributes and tags and checks for proper removal of gallery.

Checks that sub-galleries are created with proper heirarchy and that parents are not removeable while they contain children.

void test_galleryCRUD ( $attributes)
  • $attributes

Inherited Methods

Inherited From Ansel_TestBase

 Ansel_TestBase::assertOk()
 Ansel_TestBase::setUp()

Documentation generated on Sun, 30 Jan 2011 05:08:46 +0000 by phpDocumentor 1.4.3