File/tests/include/test_setup.inc

Description

Configuration of test environment.

This is the "master" include for all tests. It sets the contants to reach the test library, the application code and helper defines for navigating the test hierarchy. In addition it includes the common simpletest files as well as the CompInaBox custome testing subclasses.

This file is part of CompInaBox.

Includes
 require_once (SIMPLE_TEST.'web_tester.php') (line 61)

Load the SimpleTest web test case framework

 require_once ('DatabaseTestCases.inc') (line 70)

Load the database helper test cases

 require_once (COMPINABOX.'include/paths.inc') (line 40)

Set the CIB paths

 require_once ('WebAuthTestCase.inc') (line 72)

Load the web test case with authentication

 require_once (SIMPLE_TEST.'unit_tester.php') (line 58)

Load the SimpleTest test case framework

 require_once (SIMPLE_TEST.'reporter.php') (line 64)

Load the SimpleTest test reporting tools

 require_once (COMPINABOX.'include/conf/tools/CompInaBox_config.inc') (line 42)

Load the CompInaBox config file for path to testing install

 require_once (SIMPLE_TEST.'mock_objects.php') (line 67)

Load the mock generator

Constants
CIB_DIR = "//$CIB_WEB_INSTALL_DIR" (line 47)

Elevate install directory to constats for use in returnTo web-tests

CIB_URL = $CIB_BASE_URL (line 45)

Elevate base url to a constant for use in class fucntions

CLASS_TEST = COMPINABOX.'tests/unit-tests/classes/' (line 51)

Define base path of tests of CompInaBox class's

COMPINABOX = '/usr/local/CIB/main-dev/compinabox/' (line 24)

Define base path of CompInaBox application

SIMPLE_TEST = '/usr/local/CIB/simpletest/' (line 21)

Define path to simpletest framework

TEST_DB_CIB_ADMIN = 'test_cib_admin_user' (line 33)

Configure the test sandbox for database tests

TEST_DB_CIB_AUTH = 'test_cib_auth_user' (line 32)

Configure the test sandbox for database tests

TEST_DB_CIB_UNAUTH = 'test_cib_unauth_user' (line 31)

Configure the test sandbox for database tests

TEST_DB_HOST = 'localhost' (line 27)

Configure the test sandbox for database tests

TEST_DB_NAME = 'test_cib_central' (line 28)

Configure the test sandbox for database tests

TEST_DB_OWNER = 'test_superuser' (line 29)

Configure the test sandbox for database tests

TEST_DB_OWNER_PASS = 'I like testing!' (line 30)

Configure the test sandbox for database tests

TEST_SCHEMA_FILE = COMPINABOX.'tests/include/sql/testing_base_schema.sql' (line 34)

Configure the test sandbox for database tests

WEB_UNIT = COMPINABOX.'tests/unit-tests/web-pages/' (line 53)

Define base path of tests of CompInaBox web pages

Documentation generated on Tue, 25 Apr 2006 13:11:49 -0400 by phpDocumentor 1.3.0RC3