Completed
Push — rm/deprecated-code ( a2dc7a...6965d4 )
by Jeremy
38:00 queued 28:29
created

WP_Test_Jetpack_Heartbeat::jetpack_heartbeat()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
class WP_Test_Jetpack_Heartbeat extends WP_UnitTestCase {
4
5
	/**
6
	 * @covers Jetpack_Heartbeat::init
7
	 * @since 3.9.0
8
	 */
9
	public function test_init() {
10
		$this->assertInstanceOf( 'Jetpack_Heartbeat', Jetpack_Heartbeat::init() );
11
	}
12
13
	/**
14
	 * @covers Jetpack_Heartbeat::generate_stats_array
15
	 * @since 3.9.0
16
	 */
17
	public function test_generate_stats_array() {
18
		$prefix = 'test';
19
20
		$result = Jetpack_Heartbeat::generate_stats_array( $prefix );
21
22
		$this->assertNotEmpty( $result );
23
		$this->assertArrayHasKey( $prefix . 'version', $result );
24
	}
25
}
26