Code Duplication    Length = 9-9 lines in 2 locations

packages/status/tests/php/test_Status.php 2 locations

@@ 171-179 (lines=9) @@
168
	/**
169
	 * @covers Automattic\Jetpack\Status::is_single_user_site
170
	 */
171
	public function test_is_single_user_site_with_one_user() {
172
		$this->mock_wpdb_get_var( 1 );
173
		$this->mock_function( 'get_transient', false );
174
		$this->mock_function( 'set_transient' );
175
176
		$this->assertTrue( $this->status->is_single_user_site() );
177
178
		$this->clean_mock_wpdb_get_var();
179
	}
180
181
	/**
182
	 * @covers Automattic\Jetpack\Status::is_single_user_site
@@ 184-192 (lines=9) @@
181
	/**
182
	 * @covers Automattic\Jetpack\Status::is_single_user_site
183
	 */
184
	public function test_is_single_user_site_with_multiple_users() {
185
		$this->mock_wpdb_get_var( 3 );
186
		$this->mock_function( 'get_transient', false );
187
		$this->mock_function( 'set_transient' );
188
189
		$this->assertFalse( $this->status->is_single_user_site() );
190
191
		$this->clean_mock_wpdb_get_var();
192
	}
193
194
195
	/**