Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 39-47 (lines=9) @@
36
		Monkey\tearDown();
37
	}
38
39
	public function test_jitm_enabled_by_default() {
40
		Functions\expect( 'apply_filters' )
41
			->once()
42
			->with(	'jetpack_just_in_time_msgs', true )
43
			->andReturn( true );
44
45
		$jitm = new JITM();
46
		$this->assertTrue( $jitm->register() );
47
	}
48
49
	public function test_jitm_disabled_by_filter() {
50
		Functions\expect( 'apply_filters' )
@@ 49-57 (lines=9) @@
46
		$this->assertTrue( $jitm->register() );
47
	}
48
49
	public function test_jitm_disabled_by_filter() {
50
		Functions\expect( 'apply_filters' )
51
			->once()
52
			->with( 'jetpack_just_in_time_msgs', true )
53
			->andReturn( false );
54
55
		$jitm = new JITM();
56
		$this->assertFalse( $jitm->register() );
57
	}
58
59
	/**
60
	 * This is an example of a test which uses Mockery to tests a class static method.