TreeCollectionNodeTest

Extends \CakeTestCase

TreeCollectionNodeTest

package

TreeHelperTest

subpackage

Tree

Methods

Data provider for testAddChildrens

childrenProvider() : array

Response

array

Data provider for testIsEquals

isEqualsProvider() : array

Response

array

Data provider for testJsonSerialize

jsonSerializeProvider() : \testJsonSerialize

Response

\testJsonSerialize

Data provider for testCreate, testSet

nodesProvider() : array

Response

array

{@inheritdoc}

setUp() 

Test add childrens

testAddChildrens(\TreeCollectionNode $Node, array<mixed,\TreeCollectionNode> $Childrens) 
dataProvider

childrenProvider

Arguments

$Childrens

array<mixed,\TreeCollectionNode>

Test create node

testCreate(mixed $Element, \TreeCollection $Childrens = null, \TreeCollectionNode $Parent = null) 
dataProvider

nodesProvider

Arguments

$Element

mixed

$Childrens

\TreeCollection

Test isEquals

testIsEquals(\TreeCollectionNode $Node1, \TreeCollectionNode $Node2, boolean $equals) 
dataProvider

isEqualsProvider

Arguments

$equals

boolean

Test json serialize

testJsonSerialize(\TreeCollectionNode $Node, array $output) 
dataProvider

jsonSerializeProvider

Arguments

$output

array

Test remove childrens

testRemoveChildrens(\TreeCollectionNode $Node, array<mixed,\TreeCollectionNode> $Childrens) 
dataProvider

childrenProvider

Arguments

$Childrens

array<mixed,\TreeCollectionNode>

Test node setters

testSet(mixed $Element, \TreeCollection $Childrens = null, \TreeCollectionNode $Parent = null) 
dataProvider

nodesProvider

Arguments

$Element

mixed

$Childrens

\TreeCollection