Skip to content

Commit

Permalink
Adding another test and reverting teporal change
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Mar 29, 2014
1 parent cb5e233 commit d0f461a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Fixture/CategoryFixture.php
Expand Up @@ -43,7 +43,7 @@ class CategoryFixture extends TestFixture {
*
* @var array
*/
public $_records = array(
public $records = array(
array('parent_id' => 0, 'name' => 'Category 1', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'),
array('parent_id' => 1, 'name' => 'Category 1.1', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'),
array('parent_id' => 1, 'name' => 'Category 1.2', 'created' => '2007-03-18 15:30:23', 'updated' => '2007-03-18 15:32:31'),
Expand Down
3 changes: 3 additions & 0 deletions tests/TestCase/Model/Behavior/TreeBehaviorTest.php
Expand Up @@ -59,6 +59,9 @@ public function testFindPath() {

$nodes = $this->table->find('path', ['for' => 5]);
$this->assertEquals([1, 2, 5], $nodes->extract('id')->toArray());

$nodes = $this->table->find('path', ['for' => 1]);
$this->assertEquals([1], $nodes->extract('id')->toArray());
}

}

0 comments on commit d0f461a

Please sign in to comment.