1 | <?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase |
||
15 | class XMLRPC_Connector_Test extends TestCase { |
||
16 | |||
17 | /** |
||
18 | * Public key to verify signature |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | public static $public_key; |
||
23 | |||
24 | /** |
||
25 | * Base64 encoded signature |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | public static $signature; |
||
30 | |||
31 | /** |
||
32 | * Timestamp of the signature |
||
33 | * |
||
34 | * @var integer |
||
35 | */ |
||
36 | public static $timestamp; |
||
37 | |||
38 | /** |
||
39 | * Initialize tests |
||
40 | * |
||
41 | * @beforeClass |
||
42 | */ |
||
43 | public static function set_up_before_class() { |
||
58 | |||
59 | /** |
||
60 | * Tests is_request_signed_by_jetpack_debugger |
||
61 | * |
||
62 | * @param array $get_params The value of $_GET. |
||
63 | * @param bool $expected The expected return of is_request_signed_by_jetpack_debugger. |
||
64 | * |
||
65 | * @dataProvider is_request_signed_by_jetpack_debugger_data |
||
66 | * @covers Automattic\Jetpack\Connection\REST_Connector::is_request_signed_by_jetpack_debugger |
||
67 | * @return void |
||
68 | */ |
||
69 | public function test_is_request_signed_by_jetpack_debugger( $get_params, $expected ) { |
||
86 | |||
87 | /** |
||
88 | * Data provider for test_is_request_signed_by_jetpack_debugger |
||
89 | * |
||
90 | * @return array |
||
91 | */ |
||
92 | public function is_request_signed_by_jetpack_debugger_data() { |
||
144 | |||
145 | } |
||
146 |