\JTableNestedTest
Test class for JTableNested.
Synopsis
class JTableNestedTest
extends TestCaseDatabase
{
- // members
- protected NestedTable $class;
- // Inherited members from TestCaseDatabase
- protected JDatabaseDriver $driver;
- // methods
- public void testCheck()
- public void testDebug()
- public void testDelete()
- public void testGetPath()
- public void testGetRootId()
- public void testGetTree()
- public void testIsLeaf()
- public void testMove_right()
- public void testMove_left()
- public void testMoveByReference_after()
- public void testMoveByReference_before()
- public void testMoveByReference_firstChild()
- public void testMoveByReference_lastChild()
- public void testMoveByReference_noReference()
- public void testMoveByReference_failures()
- public void testOrderDown()
- public void testOrderUp()
- public void testPublish()
- public void testRebuild()
- public void testRebuildPath()
- public void testSaveorder()
- public void testSetLocation()
- public void testSetLocation_exception()
- public void testStore()
- public void test_getNode()
- public void test_getTreeRepositionData()
- public void test_runQuery()
- protected PHPUnit_Extensions_Database_DataSet_XmlDataSet getDataSet()
- protected void setUp()
- protected void tearDown()
- // 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
Members
protected
- $class — NestedTable
- $driver — JDatabaseDriver
Methods
protected
- getDataSet() — Gets the data set to be loaded into the database during setup
- setUp() — Sets up the fixture.
- tearDown() — Tears down the fixture.
public
- testCheck() — Tests the `check` method.
- testDebug() — Tests the `debug` method.
- testDelete() — Tests the `delete` method.
- testGetPath() — Tests the `getPath` method.
- testGetRootId() — Tests the `getRootId` method.
- testGetTree() — Tests the `getTree` method.
- testIsLeaf() — Tests the `isLeaf` method.
- testMoveByReference_after() — Tests the `moveByReference` method.
- testMoveByReference_before() — Tests the `moveByReference` method.
- testMoveByReference_failures() — Tests the `moveByReference` method.
- testMoveByReference_firstChild() — Tests the `moveByReference` method.
- testMoveByReference_lastChild() — Tests the `moveByReference` method.
- testMoveByReference_noReference() — Tests the `moveByReference` method.
- testMove_left() — Tests the `move` method.
- testMove_right() — Tests the `move` method.
- testOrderDown() — Tests the `orderDown` method.
- testOrderUp() — Tests the `orderUp` method.
- testPublish() — Tests the `publish` method.
- testRebuild() — Tests the `rebuild` method.
- testRebuildPath() — Tests the `delete` method.
- testSaveorder() — Tests the `saveorder` method.
- testSetLocation() — Tests the `setLocation` method.
- testSetLocation_exception() — Tests the `setLocation` method for an expected exception.
- testStore() — Tests the `store` method.
- test_getNode() — Tests the `_getNode` method.
- test_getTreeRepositionData() — Tests the `_getTreeRepositionData` method.
- test_runQuery() — Tests the `_runQuery` method.
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.