DatabaseTestCase
Extends TestCaseBase test case for tests interacting with a database
abstract
since |
2.0.0 |
---|---|
package |
Joomla Framework |
Methods
createDatabaseManager
Create the database manager for this test class.
createDatabaseManager() : \Joomla\Test\DatabaseManager
static
If necessary, this method can be extended to create your own subclass of the base DatabaseManager object to customise the behaviors in your application.
since |
2.0.0 |
---|
Response
\Joomla\Test\DatabaseManager
getDatabaseManager
Fetch the database manager for this test case.
getDatabaseManager() : \Joomla\Test\DatabaseManager
static
This creates a singleton manager used for all tests in this class.
since |
2.0.0 |
---|
Response
\Joomla\Test\DatabaseManager
setUpBeforeClass
This method is called before the first test of this test class is run.
setUpBeforeClass() : void
static
since |
2.0.0 |
---|
tearDownAfterClass
This method is called after the last test of this test class is run.
tearDownAfterClass() : void
static
since |
2.0.0 |
---|
Properties
connection
The database connection for the test case
static
since |
2.0.0 |
---|
Type(s)
\Joomla\Database\DatabaseInterface|null
dbManager
The database manager
static
since |
2.0.0 |
---|
Type(s)
\Joomla\Test\DatabaseManager|null