Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 36-45 (lines=10) @@
33
		$this->clear_enqueued_scripts();
34
	}
35
36
	public function test_jitm_disabled_by_filter() {
37
		$this->mock_filters( array(
38
			array( 'jetpack_just_in_time_msgs', false, false ),
39
		) );
40
41
		$jitm = new JITM();
42
		$this->assertFalse( $jitm->register() );
43
44
		$this->clear_mock_filters();
45
	}
46
47
	public function test_jitm_enabled_by_default() {
48
		$this->mock_filters( array(
@@ 47-56 (lines=10) @@
44
		$this->clear_mock_filters();
45
	}
46
47
	public function test_jitm_enabled_by_default() {
48
		$this->mock_filters( array(
49
			array( 'jetpack_just_in_time_msgs', false, true ),
50
		) );
51
52
		$jitm = new JITM();
53
		$this->assertTrue( $jitm->register() );
54
55
		$this->clear_mock_filters();
56
	}
57
58
	/**
59
	 * This is an example of a test which uses Mockery to tests a class static method.