/** @test */ public function buildTreeForNamespaceThrowsExceptionIfNodesAreNotGivenInDescendingLeftValueOrder() { $repositoryMock = $this->buildRepositoryMock(); $repositoryMock->expects($this->once())->method('findByNamespace')->will($this->returnValue(self::buildWrongSortedSetOfNodes())); $treeBuilder = new Tx_PtExtbase_Tree_TreeBuilder($repositoryMock); try { $treeBuilder->buildTreeForNamespace('no_matter_what_namespace'); } catch (Exception $e) { $this->assertTrue(true); return; } $this->fail('No Exception was thrown.'); }
/** * Setter for respectRestrictedDepth. * * If set to true, respect restricted depth is set to true in trees returned by this repository * * @param bool $respectRestrictedDepth */ public function setRespectRestrictedDepth($respectRestrictedDepth = true) { $this->treeBuilder->setRespectRestrictedDepth($respectRestrictedDepth); }