| 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 |