Changeset 3701 for trunk/tests/NestedSet
- Timestamp:
- 02/03/08 21:29:57 (11 months ago)
- Files:
-
- 1 modified
-
trunk/tests/NestedSet/SingleRootTestCase.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/NestedSet/SingleRootTestCase.php
r2388 r3701 43 43 $node = new NestedSetTest_SingleRootNode(); 44 44 $node->name = 'root'; 45 $treeMngr = $this->conn->get Table('NestedSetTest_SingleRootNode')->getTree();45 $treeMngr = $this->conn->getMapper('NestedSetTest_SingleRootNode')->getTree(); 46 46 $treeMngr->createRoot($node); 47 47 … … 57 57 public function testLftRgtValues() 58 58 { 59 $treeMngr = $this->conn->get Table('NestedSetTest_SingleRootNode')->getTree();59 $treeMngr = $this->conn->getMapper('NestedSetTest_SingleRootNode')->getTree(); 60 60 $root = $treeMngr->fetchRoot(); 61 61 $this->assertEqual(1, $root['lft']); … … 65 65 public function testGetDescendants() 66 66 { 67 $treeMngr = $this->conn->get Table('NestedSetTest_SingleRootNode')->getTree();67 $treeMngr = $this->conn->getMapper('NestedSetTest_SingleRootNode')->getTree(); 68 68 $root = $treeMngr->fetchRoot(); 69 69 $desc = $root->getNode()->getDescendants(); … … 76 76 public function testGetNumberChildren() 77 77 { 78 $treeMngr = $this->conn->get Table('NestedSetTest_SingleRootNode')->getTree();78 $treeMngr = $this->conn->getMapper('NestedSetTest_SingleRootNode')->getTree(); 79 79 $root = $treeMngr->fetchRoot(); 80 80 $this->assertEqual(1, $root->getNode()->getNumberChildren());