Menu

## ContextAwareTestCase extends TestCase
in package

ContextAwareTestCase.php : 29

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

ContextAwareTestCase.php : 0
`public mixed $connection`

The current connection to the server

#### $pionia

ContextAwareTestCase.php : 0
`public mixed $pionia`

The current core app instance, use this to access settings if needed

#### $connection

ContextAwareTestCase.php : 32
`private Database|null $connection`

#### $pionia

ContextAwareTestCase.php : 31
`private Pionia|null $pionia`

### Methods

#### getConnection()

ContextAwareTestCase.php : 48
`public getConnection() : Database`

##### Return values

Database

#### getPionia()

ContextAwareTestCase.php : 43
`public getPionia() : Pionia`

##### Return values

Pionia

#### setUp()

ContextAwareTestCase.php : 37
`protected setUp() : void`

##### Tags

throws
  DatabaseException|Exception

#### tearDown()

ContextAwareTestCase.php : 53
`protected tearDown() : void`

## Search results