Code Duplication    Length = 4-4 lines in 2 locations

lib/Cake/Test/Case/Model/ModelIntegrationTest.php 2 locations

@@ 447-450 (lines=4) @@
444
		$TestModel->User->setDataSource('test2');
445
		$TestModel->Comment->setDataSource('test2');
446
447
		foreach ($expected as $key => $value) {
448
			unset($value['Comment'], $value['Tag']);
449
			$expected[$key] = $value;
450
		}
451
452
		$TestModel->recursive = 0;
453
		$result = $TestModel->find('all');
@@ 456-459 (lines=4) @@
453
		$result = $TestModel->find('all');
454
		$this->assertEquals($expected, $result);
455
456
		foreach ($expected as $key => $value) {
457
			unset($value['Comment'], $value['Tag']);
458
			$expected[$key] = $value;
459
		}
460
461
		$TestModel->recursive = 0;
462
		$result = $TestModel->find('all');