\JDatabaseDriverPostgresqlTest
Test class for JDatabaseDriverPostgresql.
Synopsis
class JDatabaseDriverPostgresqlTest
extends TestCaseDatabasePostgresql
{
- // Inherited members from TestCaseDatabasePostgresql
- protected JDatabaseDriverPostgresql $driver;
- // Inherited members from TestCaseDatabase
- protected JDatabaseDriver $driver;
- // methods
- public array dataTestEscape()
- public array dataTestGetEscaped()
- public array dataTestTransactionRollback()
- public array dataGetCreateDbQuery()
- public array dataTestReplacePrefix()
- public array dataTestQuoteName()
- public array dataTestLoadNextObject()
- public array dataTestLoadNextRow()
- public void test__destruct()
- public void testConnected()
- public void testEscape()
- public void testGetAffectedRows()
- public void testGetCollation()
- public void testGetNumRows()
- public void testGetTableCreate()
- public void testGetTableColumns()
- public void testGetTableKeys()
- public void testGetTableSequences()
- public void testGetTableList()
- public void testGetVersion()
- public void testInsertid()
- public void testInsertObject()
- public void testIsSupported()
- public void testLoadAssoc()
- public void testLoadAssocList()
- public void testLoadColumn()
- public void testLoadNextObject()
- public void testLoadNextObject_plusLoad()
- public void testLoadNextObject_plusQuery()
- public void testLoadNextRow()
- public void testLoadNextRow_plusQuery()
- public void testLoadNextRow_plusLoad()
- public void testLoadObject()
- public void testLoadObjectList()
- public void testLoadResult()
- public void testLoadRow()
- public void testLoadRowList()
- public void testExecute()
- public void testQuoteName()
- public void testSelect()
- public void testSqlValue()
- public void testSetUTF()
- public void testTest()
- public void testUpdateObject()
- public void testTransactionCommit()
- public void testTransactionRollback()
- public void testTransactionStart()
- public void testReleaseTransactionSavepoint()
- public void testRenameTable()
- public void testReplacePrefix()
- public void testTransactionSavepoint()
- public void testGetCreateDbQuery()
- public void testGetAlterDbCharacterSet()
- // Inherited methods from TestCaseDatabasePostgresql
- public static void setUpBeforeClass()
- public static void tearDownAfterClass()
- protected PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection getConnection()
- // Inherited methods from TestCaseDatabase
- public static bool errorCallback()
- public static void setUpBeforeClass()
- public static void tearDownAfterClass()
- public void assignMockCallbacks()
- public void assignMockReturns()
- public JApplication getMockApplication()
- public JApplicationCms getMockCmsApp()
- public JConfig getMockConfig()
- public JDatabase getMockDatabase()
- public JEventDispatcher getMockDispatcher()
- public JDocument getMockDocument()
- public JLanguage getMockLanguage()
- public JSession getMockSession()
- public JApplicationWeb getMockWeb()
- protected PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection getConnection()
- protected PHPUnit_Extensions_Database_DataSet_XmlDataSet getDataSet()
- protected PHPUnit_Extensions_Database_Operation_DatabaseOperation getSetUpOperation()
- protected PHPUnit_Extensions_Database_Operation_DatabaseOperation getTearDownOperation()
- protected void restoreFactoryState()
- protected void saveErrorHandlers()
- protected void saveFactoryState()
- protected void setErrorHandlers()
- protected void setErrorCallback()
- protected void setUp()
Hierarchy
Extends
Tasks
Tasks
Line | Task |
---|---|
208+ | Implement test__destruct(). |
1103+ | Implement testUpdateObject(). |
1329+ | Implement testTransactionSavepoint(). |
Members
protected
- $driver — JDatabaseDriverPostgresql
- $driver — JDatabaseDriver
Methods
public
- dataGetCreateDbQuery() — Data for the getCreateDbQuery test.
- dataTestEscape() — Data for the testEscape test.
- dataTestGetEscaped() — Data for the testGetEscaped test, proxies of escape, so same data test.
- dataTestLoadNextObject() — Data for testLoadNextObject test.
- dataTestLoadNextRow() — Data for testLoadNextRow test.
- dataTestQuoteName() — Data for testQuoteName test.
- dataTestReplacePrefix() — Data for the TestReplacePrefix test.
- dataTestTransactionRollback() — Data for the testTransactionRollback test.
- testConnected() — Check if connected() method returns true.
- testEscape() — Tests the JDatabasePostgresql escape method.
- testExecute() — Test the JDatabasePostgresql::execute() method
- testGetAffectedRows() — Test getAffectedRows method.
- testGetAlterDbCharacterSet() — Tests the JDatabasePostgresql getAlterDbCharacterSet method.
- testGetCollation() — Tests the JDatabasePostgresql getCollation method.
- testGetCreateDbQuery() — Tests the JDatabasePostgresql getCreateDbQuery method.
- testGetNumRows() — Tests the JDatabasePostgresql getNumRows method.
- testGetTableColumns() — Test getTableColumns function.
- testGetTableCreate() — Tests the JDatabasePostgresql getTableCreate method.
- testGetTableKeys() — Test getTableKeys function.
- testGetTableList() — Tests the JDatabasePostgresql getTableList method.
- testGetTableSequences() — Test getTableSequences function.
- testGetVersion() — Tests the JDatabasePostgresql getVersion method.
- testInsertObject() — Test insertObject function
- testInsertid() — Tests the JDatabasePostgresql insertId method.
- testIsSupported() — Test isSupported function.
- testLoadAssoc() — Test loadAssoc method.
- testLoadAssocList() — Test loadAssocList method.
- testLoadColumn() — Test loadColumn method
- testLoadNextObject() — Test loadNextObject function
- testLoadNextObject_plusLoad() — Test loadNextObject function with preceding loadObject call
- testLoadNextObject_plusQuery() — Test loadNextObject function with preceding query call
- testLoadNextRow() — Test loadNextRow function
- testLoadNextRow_plusLoad() — Test loadNextRow function with preceding loadRow call
- testLoadNextRow_plusQuery() — Test loadNextRow function with preceding query call
- testLoadObject() — Test loadObject method
- testLoadObjectList() — Test loadObjectList method
- testLoadResult() — Test loadResult method
- testLoadRow() — Test loadRow method
- testLoadRowList() — Test loadRowList method
- testQuoteName() — Test quoteName function, with and without dot notation.
- testReleaseTransactionSavepoint() — Test for release of transaction savepoint, correct case is already tested inside testTransactionRollback, here will be tested a RELEASE SAVEPOINT of an inexistent savepoint that will throw and exception.
- testRenameTable() — Tests the JDatabasePostgresql renameTable method.
- testReplacePrefix() — Tests the JDatabasePostgresql replacePrefix method.
- testSelect() — Tests the JDatabasePostgresql select method.
- testSetUTF() — Test setUTF function
- testSqlValue() — Tests the JDatabasePostgresql sqlValue method.
- testTest() — Test Test method - there really isn't a lot to test here, but this is present for the sake of completeness
- testTransactionCommit() — Tests the JDatabasePostgresql transactionCommit method.
- testTransactionRollback() — Tests the JDatabasePostgresql transactionRollback method, with and without savepoint.
- testTransactionSavepoint() — Test for creation of transaction savepoint
- testTransactionStart() — Tests the JDatabasePostgresql transactionStart method.
- testUpdateObject() — Test updateObject function.
- test__destruct() — Test destruct
Inherited from TestCaseDatabasePostgresql
protected
- getConnection() — Returns the default database connection for running the tests.
public
- setUpBeforeClass() — This method is called before the first test of this test class is run.
- tearDownAfterClass() — This method is called after the last test of this test class is run.
Inherited from TestCaseDatabase
protected
- getConnection() — Returns the default database connection for running the tests.
- getDataSet() — Gets the data set to be loaded into the database during setup
- getSetUpOperation() — Returns the database operation executed in test setup.
- getTearDownOperation() — Returns the database operation executed in test cleanup.
- restoreFactoryState() — Sets the Factory pointers
- saveErrorHandlers() — Saves the current state of the JError error handlers.
- saveFactoryState() — Saves the Factory pointers
- setErrorCallback() — Sets the JError error handlers to callback mode and points them at the test logging method.
- setErrorHandlers() — Sets the JError error handlers.
- setUp() — Sets up the fixture.
public
- assignMockCallbacks() — Assigns mock callbacks to methods.
- assignMockReturns() — Assigns mock values to methods.
- errorCallback() — Receives the callback from JError and logs the required error information for the test.
- getMockApplication() — Gets a mock application object.
- getMockCmsApp() — Gets a mock CMS application object.
- getMockConfig() — Gets a mock configuration object.
- getMockDatabase() — Gets a mock database object.
- getMockDispatcher() — Gets a mock dispatcher object.
- getMockDocument() — Gets a mock document object.
- getMockLanguage() — Gets a mock language object.
- getMockSession() — Gets a mock session object.
- getMockWeb() — Gets a mock web object.
- setUpBeforeClass() — This method is called before the first test of this test class is run.
- tearDownAfterClass() — This method is called after the last test of this test class is run.