@@ 59-68 (lines=10) @@ | ||
56 | /** |
|
57 | * @covers Automattic\Jetpack\Status::is_development_mode |
|
58 | */ |
|
59 | public function test_is_development_mode_filter_true() { |
|
60 | $this->mock_function( 'site_url', $this->site_url ); |
|
61 | $filters_mock = $this->mock_filters( array( |
|
62 | array( 'jetpack_development_mode', false, true ), |
|
63 | ) ); |
|
64 | ||
65 | $this->assertTrue( $this->status->is_development_mode() ); |
|
66 | ||
67 | $filters_mock->disable(); |
|
68 | } |
|
69 | ||
70 | /** |
|
71 | * @covers Automattic\Jetpack\Status::is_development_mode |
|
@@ 73-82 (lines=10) @@ | ||
70 | /** |
|
71 | * @covers Automattic\Jetpack\Status::is_development_mode |
|
72 | */ |
|
73 | public function test_is_development_mode_filter_bool() { |
|
74 | $this->mock_function( 'site_url', $this->site_url ); |
|
75 | $filters_mock = $this->mock_filters( array( |
|
76 | array( 'jetpack_development_mode', false, 0 ), |
|
77 | ) ); |
|
78 | ||
79 | $this->assertFalse( $this->status->is_development_mode() ); |
|
80 | ||
81 | $filters_mock->disable(); |
|
82 | } |
|
83 | ||
84 | /** |
|
85 | * @covers Automattic\Jetpack\Status::is_development_mode |