Changeset 3701 for trunk/tests/NestedSet

Show
Ignore:
Timestamp:
02/03/08 21:29:57 (11 months ago)
Author:
romanb
Message:

Merged r3518:r3700 from branch to trunk. Branch to be deleted, soon. Development continues in trunk.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/NestedSet/SingleRootTestCase.php

    r2388 r3701  
    4343        $node = new NestedSetTest_SingleRootNode(); 
    4444        $node->name = 'root'; 
    45         $treeMngr = $this->conn->getTable('NestedSetTest_SingleRootNode')->getTree(); 
     45        $treeMngr = $this->conn->getMapper('NestedSetTest_SingleRootNode')->getTree(); 
    4646        $treeMngr->createRoot($node); 
    4747         
     
    5757    public function testLftRgtValues() 
    5858    { 
    59         $treeMngr = $this->conn->getTable('NestedSetTest_SingleRootNode')->getTree(); 
     59        $treeMngr = $this->conn->getMapper('NestedSetTest_SingleRootNode')->getTree(); 
    6060        $root = $treeMngr->fetchRoot(); 
    6161        $this->assertEqual(1, $root['lft']); 
     
    6565    public function testGetDescendants() 
    6666    { 
    67         $treeMngr = $this->conn->getTable('NestedSetTest_SingleRootNode')->getTree(); 
     67        $treeMngr = $this->conn->getMapper('NestedSetTest_SingleRootNode')->getTree(); 
    6868        $root = $treeMngr->fetchRoot(); 
    6969        $desc = $root->getNode()->getDescendants(); 
     
    7676    public function testGetNumberChildren() 
    7777    { 
    78         $treeMngr = $this->conn->getTable('NestedSetTest_SingleRootNode')->getTree(); 
     78        $treeMngr = $this->conn->getMapper('NestedSetTest_SingleRootNode')->getTree(); 
    7979        $root = $treeMngr->fetchRoot(); 
    8080        $this->assertEqual(1, $root->getNode()->getNumberChildren());