Remove debug code included in previous commit.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5503 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
AD7six 2007-08-09 20:34:29 +00:00
parent d2ae3940ce
commit 3f1a49d1cf

View file

@ -345,7 +345,7 @@ class NumberTreeCase extends CakeTestCase {
$this->NumberTree->id = $data['NumberTree']['id'];
$this->NumberTree->saveField('parent_id', null);
//$this->NumberTree->setparent(null);
// Find the last parent node in the tree
// Find the last parent node in the tree
$result = $this->NumberTree->find(null, array('name','parent_id'), 'NumberTree.rght desc');
$expected = array('NumberTree' => array('name' => '1.1', 'parent_id' => null));
$this->assertEqual($result, $expected);
@ -558,13 +558,8 @@ class NumberTreeCase extends CakeTestCase {
$initialCount = $this->NumberTree->findCount();
$result = $this->NumberTree->findByName('1.1.1');
//pr ($this->NumberTree->findAll());
//$db =& ConnectionManager::getDataSource($this->NumberTree->useDbConfig);
//$db->fullDebug = true;
$return = $this->NumberTree->delete($result['NumberTree']['id']);
//pr ($this->NumberTree->findAll());
$this->assertEqual($return, true);
//die;
$laterCount = $this->NumberTree->findCount();
$this->assertEqual($initialCount - 1, $laterCount);