示例#1
0
 public function Test_of_Test_of_init()
 {
     $Categories = new NestedCategory();
     $Categories->nested_set->init(array('scope' => array('category_id = ? AND completed = 0', $Categories->getId()), 'custom_attribute' => 'This is not allowed here'));
     $this->assertEqual($Categories->nested_set->getScopeCondition(), array(0 => 'category_id = ? AND completed = 0', 1 => null));
     $this->assertTrue(empty($Categories->nested_set->custom_attribute));
 }