Omeka_Test_AppTestCase¶
- class Omeka_Test_AppTestCase¶
Package: Test
Abstract test case class that bootstraps the entire application.
- property _isAdminTest¶
Flag that determines whether the test should run against admin or public. Defaults to true (for admin).
- setUp()¶
Bootstrap the application on each test run.
Returns: void
- __get(string $property)¶
Proxy gets to properties to allow access to bootstrap container properties.
Parameters: - $property (string) –
Returns: mixed
- appBootstrap()¶
Bootstrap the application.
Returns: void
- setUpBootstrap(Zend_Application_Bootstrap $bootstrap)¶
Subclasses can override this to perform specialized setup on the Omeka application.
Parameters: - $bootstrap (Zend_Application_Bootstrap) –
Returns: void
- tearDown()¶
Reset objects that carry global state between test runs.
Returns: void
- dispatch(string $url, boolean $throwExceptions = 1)¶
Parameters: - $url (string) –
- $throwExceptions (boolean) –
Returns: void
- _authenticateUser(User $user)¶
Trick the environment into thinking that a user has been authenticated.
Parameters: - $user (User) –
Returns: void
- _getDefaultUser()¶
Get the user that is installed by default.
Returns: User
- _setUpThemeBootstrap($themeType)¶
Set up the bootstrap differently depending on whether the test is meant for the public or admin themes.
Parameters: - $themeType (unknown) –