PHP Class NodeTest, phpmyadmin

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: phpmyadmin/phpmyadmin Class Usage Examples

Public Methods

Method Description
setup ( ) : void SetUp for test cases
testAddNode ( ) : void SetUp for AddNode
testGetChildError ( ) : void SetUp for getChild
testGetDataWithDisabledISAndGroupingEnabled ( ) : void Tests getData() method when DisableIS is true and navigation tree grouping enabled.
testGetDataWithEnabledISAndGroupingDisabled ( ) : void Tests getData() method when DisableIS is false and navigation tree grouping disabled.
testGetDataWithEnabledISAndGroupingEnabled ( ) : void Tests getData() method when DisableIS is false and navigation tree grouping enabled.
testGetPresenceWithDisabledIS ( ) : void Tests the getPresence method when DisableIS is true
testGetPresenceWithEnabledISAndGroupingDisabled ( ) : void Tests the getPresence method when DisableIS is false and navigation tree grouping disabled.
testGetPresenceWithEnabledISAndGroupingEnabled ( ) : void Tests the getPresence method when DisableIS is false and navigation tree grouping enabled.
testGetWhereClause ( ) : void Tests private method _getWhereClause()
testHasSiblingsForNodesAtLevelThree ( ) : void It is expected that Node->hasSiblings() method always return true for Nodes that are 3 levels deep (columns and indexes).
testHasSiblingsWithNoSiblings ( ) : void Tests whether Node->hasSiblings() method returns false when the node does not have any siblings.
testHasSiblingsWithSiblings ( ) : void Tests whether Node->hasSiblings() method returns true when it actually has siblings.
testNodeHasChildren ( ) : void SetUp for hasChildren
testNumChildren ( ) : void SetUp for numChildren
testParents ( ) : void SetUp for parents
testRealParent ( ) : void SetUp for realParent
testRemoveNode ( ) : void SetUp for getChild

Method Details

setup() public method

SetUp for test cases
public setup ( ) : void
return void

testAddNode() public method

SetUp for AddNode
public testAddNode ( ) : void
return void

testGetChildError() public method

SetUp for getChild
public testGetChildError ( ) : void
return void

testGetDataWithDisabledISAndGroupingEnabled() public method

Tests getData() method when DisableIS is true and navigation tree grouping enabled.

testGetDataWithEnabledISAndGroupingDisabled() public method

Tests getData() method when DisableIS is false and navigation tree grouping disabled.

testGetDataWithEnabledISAndGroupingEnabled() public method

Tests getData() method when DisableIS is false and navigation tree grouping enabled.

testGetPresenceWithDisabledIS() public method

Tests the getPresence method when DisableIS is true

testGetPresenceWithEnabledISAndGroupingDisabled() public method

Tests the getPresence method when DisableIS is false and navigation tree grouping disabled.

testGetPresenceWithEnabledISAndGroupingEnabled() public method

Tests the getPresence method when DisableIS is false and navigation tree grouping enabled.

testGetWhereClause() public method

Tests private method _getWhereClause()
public testGetWhereClause ( ) : void
return void

testHasSiblingsForNodesAtLevelThree() public method

It is expected that Node->hasSiblings() method always return true for Nodes that are 3 levels deep (columns and indexes).

testHasSiblingsWithNoSiblings() public method

Tests whether Node->hasSiblings() method returns false when the node does not have any siblings.

testHasSiblingsWithSiblings() public method

Tests whether Node->hasSiblings() method returns true when it actually has siblings.
public testHasSiblingsWithSiblings ( ) : void
return void

testNodeHasChildren() public method

SetUp for hasChildren
public testNodeHasChildren ( ) : void
return void

testNumChildren() public method

SetUp for numChildren
public testNumChildren ( ) : void
return void

testParents() public method

SetUp for parents
public testParents ( ) : void
return void

testRealParent() public method

SetUp for realParent
public testRealParent ( ) : void
return void

testRemoveNode() public method

SetUp for getChild
public testRemoveNode ( ) : void
return void