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