1 | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
||
16 | class UtilsTest extends TestCase { |
||
17 | |||
18 | /** |
||
19 | * This method is called after each test. |
||
20 | */ |
||
21 | public function tearDown() { |
||
24 | |||
25 | |||
26 | /** |
||
27 | * Tests the Utils::jetpack_api_constant_filter() method. |
||
28 | * |
||
29 | * @covers Automattic\Jetpack\Connection\Utils::jetpack_api_constant_filter |
||
30 | * @dataProvider jetpack_api_constant_filter_data_provider |
||
31 | * |
||
32 | * @param mixed $constant_value The constant value. |
||
33 | * @param string $constant_name The constant name. |
||
34 | * @param mixed $expected_output The expected output of Utils::get_jetpack_api_constant. |
||
35 | */ |
||
36 | public function test_jetpack_api_constant_filter( $constant_value, $constant_name, $expected_output ) { |
||
39 | |||
40 | /** |
||
41 | * Data provider for test_jetpack_api_constant_filter. |
||
42 | * |
||
43 | * The test data arrays have the format: |
||
44 | * 'constant_value' => The value that the constant will be set to. Null if the constant will not be set. |
||
45 | * 'constant_name' => The name of the constant. |
||
46 | * 'expected_output' => The expected output of Utils::jetpack_api_constant_filter(). |
||
47 | */ |
||
48 | public function jetpack_api_constant_filter_data_provider() { |
||
82 | } |
||
83 |