\JDatabaseDriverSqlsrvTest
Test class for JDatabaseDriverSqlsrv.
Synopsis
class JDatabaseDriverSqlsrvTest
extends TestCaseDatabaseSqlsrv
{
- // Inherited members from TestCaseDatabaseSqlsrv
- protected JDatabaseDriverSqlsrv $driver;
- // Inherited members from TestCaseDatabase
- protected JDatabaseDriver $driver;
- // methods
- public array dataTestEscape()
- public void test__destruct()
- public void testConnected()
- public void testDropTable()
- public void testEscape()
- public void testGetAffectedRows()
- public void testGetCollation()
- public void testGetExporter()
- public void testGetImporter()
- public void testGetNumRows()
- public void testGetTableCreate()
- public void testGetTableColumns()
- public void testGetTableKeys()
- public void testGetTableList()
- public void testGetVersion()
- public void testInsertid()
- public void testLoadAssoc()
- public void testLoadAssocList()
- public void testLoadColumn()
- public void testLoadObject()
- public void testLoadObjectList()
- public void testLoadResult()
- public void testLoadRow()
- public void testLoadRowList()
- public void testExecute()
- public void testRenameTable()
- public void testSelect()
- public void testSetUTF()
- public void testIsSupported()
- public void testUpdateObject()
- // Inherited methods from TestCaseDatabaseSqlsrv
- 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 |
---|---|
41+ | Implement test__destruct(). |
55+ | Implement testConnected(). |
106+ | Implement testGetAffectedRows(). |
126+ | Implement testGetCollation(). |
140+ | Implement testGetExporter(). |
154+ | Implement testGetImporter(). |
168+ | Implement testGetNumRows(). |
198+ | Implement testGetTableColumns(). |
260+ | Implement testInsertid(). |
516+ | Implement testSelect(). |
530+ | Implement testSetUTF(). |
560+ | Implement testUpdateObject(). |
Members
protected
- $driver — JDatabaseDriverSqlsrv
- $driver — JDatabaseDriver
Methods
public
- dataTestEscape() — Data for the testEscape test.
- testConnected() — Test the connected method.
- testDropTable() — Tests the dropTable method.
- testEscape() — Tests the escape method.
- testExecute() — Tests the execute method
- testGetAffectedRows() — Tests the getAffectedRows method
- testGetCollation() — Tests the getCollation method
- testGetExporter() — Tests the getExporter method
- testGetImporter() — Tests the getImporter method
- testGetNumRows() — Tests the getNumRows method
- testGetTableColumns() — Tests the getTableColumns method
- testGetTableCreate() — Tests the getTableCreate method.
- testGetTableKeys() — Tests the getTableKeys method.
- testGetTableList() — Tests the getTableList method.
- testGetVersion() — Tests the getVersion method.
- testInsertid() — Tests the insertid method
- testIsSupported() — Tests the isSupported method
- testLoadAssoc() — Tests the loadAssoc method
- testLoadAssocList() — Tests the loadAssocList method
- testLoadColumn() — Tests the loadColumn method
- testLoadObject() — Tests the loadObject method
- testLoadObjectList() — Tests the loadObjectList method
- testLoadResult() — Tests the loadResult method
- testLoadRow() — Tests the loadRow method
- testLoadRowList() — Tests the loadRowList method
- testRenameTable() — Tests the renameTable method
- testSelect() — Tests the select method
- testSetUTF() — Tests the setUTF method
- testUpdateObject() — Tests the updateObject method
- test__destruct() — Tests the destructor
Inherited from TestCaseDatabaseSqlsrv
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.