@@ 38-46 (lines=9) @@ | ||
35 | Monkey\tearDown(); |
|
36 | } |
|
37 | ||
38 | public function test_jitm_disabled_by_filter() { |
|
39 | Functions\expect( 'apply_filters' )->once()->with( |
|
40 | 'jetpack_just_in_time_msgs', |
|
41 | false |
|
42 | )->andReturn( false ); |
|
43 | ||
44 | $jitm = new JITM(); |
|
45 | $this->assertFalse( $jitm->register() ); |
|
46 | } |
|
47 | ||
48 | public function test_jitm_enabled_by_default() { |
|
49 | Functions\expect( 'apply_filters' )->once()->with( |
|
@@ 48-56 (lines=9) @@ | ||
45 | $this->assertFalse( $jitm->register() ); |
|
46 | } |
|
47 | ||
48 | public function test_jitm_enabled_by_default() { |
|
49 | Functions\expect( 'apply_filters' )->once()->with( |
|
50 | 'jetpack_just_in_time_msgs', |
|
51 | false |
|
52 | )->andReturn( true ); |
|
53 | ||
54 | $jitm = new JITM(); |
|
55 | $this->assertTrue( $jitm->register() ); |
|
56 | } |
|
57 | ||
58 | /** |
|
59 | * Pre-connection JITMs are disabled by default, |