Code Duplication    Length = 9-12 lines in 2 locations

tests/security/MemberTest.php 2 locations

@@ 57-65 (lines=9) @@
54
	/**
55
	 * @expectedException ValidationException
56
	 */
57
	public function testWriteDoesntMergeNewRecordWithExistingMember() {
58
		$m1 = new Member();
59
		$m1->Email = '[email protected]';
60
		$m1->write();
61
62
		$m2 = new Member();
63
		$m2->Email = '[email protected]';
64
		$m2->write();
65
	}
66
67
	/**
68
	 * @expectedException ValidationException
@@ 70-81 (lines=12) @@
67
	/**
68
	 * @expectedException ValidationException
69
	 */
70
	public function testWriteDoesntMergeExistingMemberOnIdentifierChange() {
71
		$m1 = new Member();
72
		$m1->Email = '[email protected]';
73
		$m1->write();
74
75
		$m2 = new Member();
76
		$m2->Email = '[email protected]';
77
		$m2->write();
78
79
		$m2->Email = '[email protected]';
80
		$m2->write();
81
	}
82
83
	public function testDefaultPasswordEncryptionOnMember() {
84
		$memberWithPassword = new Member();