PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 2.7.5
Jetpack – WP Security, Backup, Speed, & Growth v2.7.5
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
jetpack / tests / test_class.jetpack.php

test_class.jetpack.php in Jetpack – WP Security, Backup, Speed, & Growth 2.7.5, at tests/test_class.jetpack.php

30 lines 635 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class WP_Test_Jetpack extends WP_UnitTestCase {
4
5 /**
6 * @author blobaugh
7 * @covers Jetpack::init
8 * @since 2.3.3
9 */
10 public function test_init() {
11 $this->assertInstanceOf( 'Jetpack', Jetpack::init() );
12 }
13
14 /**
15 * This is a pretty lame test, but it does show the expected output
16 * is an array.
17 *
18 * @author blobaugh
19 * @covers Jetpack::catch_incompatible_modules
20 * @since 2.6
21 */
22 public function test_catch_incompatible_modules() {
23 $jp = Jetpack::init();
24
25 $modules = array( 'one', 'two', 'three' );
26
27 $this->assertInternalType( 'array', $jp->catch_incompatible_modules( $modules ) );
28 }
29
30 } // end class