ContextAwareTestCase
extends TestCase
in package
Provides a context aware test suite.
This test suit initialises and establishes a connection to the database. It also loads the settings from the application's database.ini. It should be the preferred choice if tests target context-aware modules in the application.
Table of Contents
Properties
- $connection : mixed
- $pionia : mixed
- $connection : Database|null
- $pionia : Pionia|null
Methods
- getConnection() : Database
- getPionia() : Pionia
- setUp() : void
- tearDown() : void
Properties
$connection
public
mixed
$connection
The current connection to the server
$pionia
public
mixed
$pionia
The current core app instance, use this to access settings if needed
$connection
private
Database|null
$connection
$pionia
private
Pionia|null
$pionia
Methods
getConnection()
public
getConnection() : Database
Return values
DatabasegetPionia()
public
getPionia() : Pionia
Return values
PioniasetUp()
protected
setUp() : void
Tags
tearDown()
protected
tearDown() : void