TreeCollectionTest

Extends \CakeTestCase

TreeCollectionTest

package

TreeHelperTest

subpackage

Tree

Methods

Data provider for testCreate

elementsProvider() : array

Response

array

Data provider for testEquals

equalsProvider() : array

Response

array

Data provider for testFilter

filterProvider() : array

Response

array

Data provider for testFilterRecursive

filterRecursiveProvider() : array

Response

array

Data provider for testFilterRecursiveReverse

filterRecursiveReverseProvider() : array

Response

array

Data provider for testJsonSerialize

jsonSerializeProvider() : array

Response

array

Data provider for testMultisort

multisortProvider() : array

Response

array

Data provider for testMultisortRecursive

multisortRecursiveProvider() : array

Response

array

Data provider for testRemove

removeProvider() : array

Response

array

Data provider for testSetNodes

setNodesProvider() : array

Response

array

{@inheritdoc}

setUp() 

Test create tree

testCreate(array $Elements) 
dataProvider

elementsProvider

Arguments

$Elements

array

Test equality

testEquals(\TreeCollection $Tree1, \TreeCollection $Tree2, boolean $equals) 
dataProvider

equalsProvider

Arguments

$equals

boolean

Test nodes filter

testFilter(callable $filter, \TreeCollection $Tree, \TreeCollection $OutputTree) 
dataProvider

filterProvider

Arguments

$filter

callable

$OutputTree

\TreeCollection

Test nodes recursive filter

testFilterRecursive(callable $filter, \TreeCollection $Tree, \TreeCollection $OutputTree) 
dataProvider

filterRecursiveProvider

Arguments

$filter

callable

$OutputTree

\TreeCollection

Test nodes recursive reverse filter

testFilterRecursiveReverse(callable $filter, \TreeCollection $Tree, \TreeCollection $OutputTree) 
dataProvider

filterRecursiveReverseProvider

Arguments

$filter

callable

$OutputTree

\TreeCollection

Test json serialize

testJsonSerialize(\TreeCollection $Tree, array $output) 
dataProvider

jsonSerializeProvider

Arguments

$output

array

Test nodes multisort

testMultisort(string|array $params, \TreeCollection $Tree, \TreeCollection $OutputTree) 
dataProvider

multisortProvider

Arguments

$params

string|array

$OutputTree

\TreeCollection

Test nodes recursive filter

testMultisortRecursive(string|array $params, \TreeCollection $Tree, \TreeCollection $OutputTree) 
dataProvider

multisortRecursiveProvider

Arguments

$params

string|array

$OutputTree

\TreeCollection

Test remove node from tree

testRemove(\TreeCollection $Tree, \TreeCollectionNode $Node, \TreeCollection $OutputTree) 
dataProvider

removeProvider

Arguments

$OutputTree

\TreeCollection

Test set nodes

testSetNodes(array $Nodes, array $initialElements) 
dataProvider

setNodesProvider

Arguments

$Nodes

array

$initialElements

array