/** * testResetDepths method * * Tests TreePlusBehavior::resetDepths(). * * @return void * @access public */ public function testResetDepths() { $this->ProductCategory->resetDepths(); $result = $this->ProductCategory->find('list', array('fields' => array('id', 'depth'), 'order' => array('id' => 'ASC'), 'recursive' => false)); $this->assertEqual(array_values($result), array(0, 1, 1, 0, 1, 1)); }