@@ 50-59 (lines=10) @@ | ||
47 | /** |
|
48 | * @covers Automattic\Jetpack\Status::is_development_mode |
|
49 | */ |
|
50 | public function test_is_development_mode_filter_true() { |
|
51 | $this->mock_function( 'site_url', $this->site_url ); |
|
52 | $filters_mock = $this->mock_filters( array( |
|
53 | array( 'jetpack_development_mode', false, true ), |
|
54 | ) ); |
|
55 | ||
56 | $this->assertTrue( $this->status->is_development_mode() ); |
|
57 | ||
58 | $filters_mock->disable(); |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * @covers Automattic\Jetpack\Status::is_development_mode |
|
@@ 64-73 (lines=10) @@ | ||
61 | /** |
|
62 | * @covers Automattic\Jetpack\Status::is_development_mode |
|
63 | */ |
|
64 | public function test_is_development_mode_filter_bool() { |
|
65 | $this->mock_function( 'site_url', $this->site_url ); |
|
66 | $filters_mock = $this->mock_filters( array( |
|
67 | array( 'jetpack_development_mode', false, 0 ), |
|
68 | ) ); |
|
69 | ||
70 | $this->assertFalse( $this->status->is_development_mode() ); |
|
71 | ||
72 | $filters_mock->disable(); |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * @covers Automattic\Jetpack\Status::is_development_mode |