Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 4873-4882 (lines=10) @@
4870
 *
4871
 * @return void
4872
 */
4873
	public function testBindModelMultipleTimesResetCorrectly() {
4874
		$this->loadFixtures('User', 'Comment', 'Article');
4875
		$TestModel = new User();
4876
4877
		$TestModel->bindModel(array('hasMany' => array('Comment')));
4878
		$TestModel->bindModel(array('hasMany' => array('Comment')));
4879
		$TestModel->resetAssociations();
4880
4881
		$this->assertFalse(isset($TestModel->hasMany['Comment']), 'Association left behind');
4882
	}
4883
4884
/**
4885
 * testBindMultipleTimes method with different reset settings
@@ 4943-4952 (lines=10) @@
4940
 *
4941
 * @return void
4942
 */
4943
	public function testUnbindMultipleTimesResetCorrectly() {
4944
		$this->loadFixtures('User', 'Comment', 'Article');
4945
		$TestModel = new Article10();
4946
4947
		$TestModel->unbindModel(array('hasMany' => array('Comment')));
4948
		$TestModel->unbindModel(array('hasMany' => array('Comment')));
4949
		$TestModel->resetAssociations();
4950
4951
		$this->assertTrue(isset($TestModel->hasMany['Comment']), 'Association permanently removed');
4952
	}
4953
4954
/**
4955
 * testBindMultipleTimes method with different reset settings