Example #1
0
 public function testGetChildrenIds()
 {
     $ids = $this->_model->getChildrenIds(1);
     // fixture
     $this->assertArrayHasKey(0, $ids);
     $this->assertTrue(2 === count($ids[0]));
     $ids = $this->_model->getChildrenIds(1, false);
     $this->assertArrayHasKey(0, $ids);
     $this->assertTrue(2 === count($ids[0]));
 }