@@ 274-280 (lines=7) @@ | ||
271 | $this->assertTrue($this->checkTree()); |
|
272 | $this->assertTrue($nestedSet->getIsDeletedRecord()); |
|
273 | $this->assertTrue($this->checkArray($array)); |
|
274 | foreach($array as $item) |
|
275 | { |
|
276 | if(in_array($item->primaryKey,array(4,5,6,7))) |
|
277 | $this->assertTrue($item->getIsDeletedRecord()); |
|
278 | else |
|
279 | $this->assertFalse($item->getIsDeletedRecord()); |
|
280 | } |
|
281 | ||
282 | // many roots |
|
283 | $array=NestedSetWithManyRoots::model()->findAll(); |
|
@@ 296-302 (lines=7) @@ | ||
293 | $this->assertTrue($this->checkTreeWithManyRoots()); |
|
294 | $this->assertTrue($nestedSet->getIsDeletedRecord()); |
|
295 | $this->assertTrue($this->checkArrayWithManyRoots($array)); |
|
296 | foreach($array as $item) |
|
297 | { |
|
298 | if(in_array($item->primaryKey,array(4,9,10,11))) |
|
299 | $this->assertTrue($item->getIsDeletedRecord()); |
|
300 | else |
|
301 | $this->assertFalse($item->getIsDeletedRecord()); |
|
302 | } |
|
303 | } |
|
304 | ||
305 | public function testPrependTo() |