mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
d2ae3940ce
commit
3f1a49d1cf
1 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue