Code Duplication    Length = 10-10 lines in 2 locations

packages/jitm/tests/php/test_Manager.php 2 locations

@@ 24-33 (lines=10) @@
21
		Mock::disableAll();
22
	}
23
24
	public function test_jitm_disabled_by_filter() {
25
		$this->mock_filters( array(
26
			array( 'jetpack_just_in_time_msgs', false, false ),
27
		) );
28
29
		$jitm = new JITM();
30
		$this->assertFalse( $jitm->register() );
31
32
		$this->clear_mock_filters();
33
	}
34
35
	public function test_jitm_enabled_by_default() {
36
		$this->mock_filters( array(
@@ 35-44 (lines=10) @@
32
		$this->clear_mock_filters();
33
	}
34
35
	public function test_jitm_enabled_by_default() {
36
		$this->mock_filters( array(
37
			array( 'jetpack_just_in_time_msgs', false, true ),
38
		) );
39
40
		$jitm = new JITM();
41
		$this->assertTrue( $jitm->register() );
42
43
		$this->clear_mock_filters();
44
	}
45
46
	protected function mock_filters( $filters ) {
47
		$this->mocked_filters = $filters;