Code Duplication    Length = 8-8 lines in 5 locations

tests/SecurityConfigTest.php 5 locations

@@ 70-77 (lines=8) @@
67
	 * @param string $appConfigValue
68
	 * @param bool $expected
69
	 */
70
	public function testGetIsBruteForceProtectionEnabled($appConfigValue, $expected) {
71
		$this->config->expects($this->once())->method('getAppValue')
72
			->with('security', 'enable_brute_force_protection', '0')
73
			->willReturn($appConfigValue);
74
		$this->assertSame($expected,
75
			$this->securityConfig->getIsBruteForceProtectionEnabled()
76
		);
77
	}
78
	/**
79
	 * @dataProvider minPassTestData
80
	 * @param string $appConfigValue
@@ 83-90 (lines=8) @@
80
	 * @param string $appConfigValue
81
	 * @param bool $expected
82
	 */
83
	public function testGetMinPasswordLength($appConfigValue, $expected) {
84
		$this->config->expects($this->once())->method('getAppValue')
85
			->with('security', 'min_password_length', '8')
86
			->willReturn($appConfigValue);
87
		$this->assertSame($expected,
88
			$this->securityConfig->getMinPasswordLength()
89
		);
90
	}
91
	/**
92
	 * @dataProvider configTestData
93
	 * @param string $appConfigValue
@@ 96-103 (lines=8) @@
93
	 * @param string $appConfigValue
94
	 * @param bool $expected
95
	 */
96
	public function testGetIsUpperLowerCaseEnforced($appConfigValue, $expected) {
97
		$this->config->expects($this->once())->method('getAppValue')
98
			->with('security', 'enforce_upper_lower_case', '0')
99
			->willReturn($appConfigValue);
100
		$this->assertSame($expected,
101
			$this->securityConfig->getIsUpperLowerCaseEnforced()
102
		);
103
	}
104
	/**
105
	 * @dataProvider configTestData
106
	 * @param string $appConfigValue
@@ 109-116 (lines=8) @@
106
	 * @param string $appConfigValue
107
	 * @param bool $expected
108
	 */
109
	public function testGetIsNumericCharactersEnforced($appConfigValue, $expected) {
110
		$this->config->expects($this->once())->method('getAppValue')
111
			->with('security', 'enforce_numeric_characters', '0')
112
			->willReturn($appConfigValue);
113
		$this->assertSame($expected,
114
			$this->securityConfig->getIsNumericCharactersEnforced()
115
		);
116
	}
117
	/**
118
	 * @dataProvider configTestData
119
	 * @param string $appConfigValue
@@ 122-129 (lines=8) @@
119
	 * @param string $appConfigValue
120
	 * @param bool $expected
121
	 */
122
	public function testGetIsSpecialCharactersEnforced($appConfigValue, $expected) {
123
		$this->config->expects($this->once())->method('getAppValue')
124
			->with('security', 'enforce_special_characters', '0')
125
			->willReturn($appConfigValue);
126
		$this->assertSame($expected,
127
			$this->securityConfig->getIsSpecialCharactersEnforced()
128
		);
129
	}
130
	/**
131
	 * @dataProvider configTestData
132
	 * @param string $expected