public function testGetPath() { $nestedset = new NestedSet_Model(); $db = Zend_Db::factory('Pdo_Sqlite', array('dbname' => 'tests/test.db')); $nestedset->setDb($db); $nestedset->setTableName('nested'); $nestedset->add('foo'); $nestedset->add('bar', 1); $expected_result = array(0 => array('id' => '2', 'name' => 'bar', 'depth' => '1')); $this->assertEquals($nestedset->getPath(2), $expected_result); }