Code Duplication    Length = 9-12 lines in 2 locations

tests/security/MemberTest.php 2 locations

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