Changeset 56249 for trunk/tests/phpunit/tests/load/wpGetDevelopmentMode.php
- Timestamp:
- 07/17/2023 02:48:48 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/load/wpGetDevelopmentMode.php
r56223 r56249 9 9 * @group load.php 10 10 * @covers ::wp_get_development_mode 11 * @covers ::wp_i n_development_mode11 * @covers ::wp_is_development_mode 12 12 */ 13 13 class Test_WP_Get_Development_Mode extends WP_UnitTestCase { … … 47 47 48 48 /** 49 * Tests that `wp_i n_development_mode()` returns expected results.49 * Tests that `wp_is_development_mode()` returns expected results. 50 50 * 51 51 * @ticket 57487 52 * @dataProvider data_wp_i n_development_mode52 * @dataProvider data_wp_is_development_mode 53 53 */ 54 public function test_wp_i n_development_mode( $current, $given, $expected ) {54 public function test_wp_is_development_mode( $current, $given, $expected ) { 55 55 global $_wp_tests_development_mode; 56 56 … … 58 58 59 59 if ( $expected ) { 60 $this->assertTrue( wp_i n_development_mode( $given ), "{$given} is expected to pass in {$current} mode" );60 $this->assertTrue( wp_is_development_mode( $given ), "{$given} is expected to pass in {$current} mode" ); 61 61 } else { 62 $this->assertFalse( wp_i n_development_mode( $given ), "{$given} is expected to fail in {$current} mode" );62 $this->assertFalse( wp_is_development_mode( $given ), "{$given} is expected to fail in {$current} mode" ); 63 63 } 64 64 } 65 65 66 66 /** 67 * Data provider that returns test scenarios for the `test_wp_i n_development_mode()` method.67 * Data provider that returns test scenarios for the `test_wp_is_development_mode()` method. 68 68 * 69 69 * @return array[] 70 70 */ 71 public function data_wp_i n_development_mode() {71 public function data_wp_is_development_mode() { 72 72 return array( 73 73 'core mode, testing for core' => array(
Note: See TracChangeset
for help on using the changeset viewer.