Generic Support for logginng in to the site.
This subclass of WebTestCase accepts arguments creates a special setup() that will post login credentials and destination web-page into the normal login script. It save a page load as it doesn;t need to fetch a login form first and doesn't need to clickLinks to reach a given page.
However, you still should remember that each testFunction in a sub-class will resubmit the login information. So for the sake of timliness WebAuthTestCase based test functions should aggeegate assertions more than regular unit-tests.
Located in /tests/include/WebAuthTestCase.inc (line 36)
WebTestCase | --DatabaseWebTestCase | --WebAuthTestCase
Class | Description |
---|---|
![]() |
Acceptance Test Wrapper over the 5 step ResultTracker import process |
![]() |
Acceptance Test Wrapper over the 5 step ResultTracker import process |
![]() |
Test that the form generates the correct lists. |
![]() |
Test that the required links appear on the main admin index page |
Hashed Array of testing credentials
What page to test, as a relative path from CIB_WEB_INSTALL_DIR
What username to submit
Inherited from DatabaseWebTestCase
DatabaseWebTestCase::$db
DatabaseWebTestCase::$dbhost
DatabaseWebTestCase::$dbname
DatabaseWebTestCase::$dbpass
DatabaseWebTestCase::$dbuser
DatabaseWebTestCase::$schemaFile
WebAuthTestCase Constructor
Login and Navigate to desired page
Inherited From DatabaseWebTestCase
DatabaseWebTestCase::DatabaseWebTestCase()
DatabaseWebTestCase::query()
DatabaseWebTestCase::setDBName()
DatabaseWebTestCase::setSchemaFile()
DatabaseWebTestCase::setUp()
DatabaseWebTestCase::tearDown()
DatabaseWebTestCase::_fullyClose()
DatabaseWebTestCase::_getDatabaseName()
DatabaseWebTestCase::_isConnectionValid()
DatabaseWebTestCase::_loadSchemaFile()
Documentation generated on Tue, 25 Apr 2006 13:12:40 -0400 by phpDocumentor 1.3.0RC3