Changeset 52010 for trunk/tests/phpunit/tests/basic.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/basic.php
r50192 r52010 8 8 class Tests_Basic extends WP_UnitTestCase { 9 9 10 function test_license() {10 public function test_license() { 11 11 // This test is designed to only run on trunk/master. 12 12 $this->skipOnAutomatedBranches(); … … 18 18 } 19 19 20 function test_security_md() {20 public function test_security_md() { 21 21 // This test is designed to only run on trunk/master. 22 22 $this->skipOnAutomatedBranches(); … … 29 29 } 30 30 31 function test_package_json() {31 public function test_package_json() { 32 32 $package_json = file_get_contents( dirname( ABSPATH ) . '/package.json' ); 33 33 $package_json = json_decode( $package_json, true ); … … 44 44 * @depends test_package_json 45 45 */ 46 function test_package_json_node_engine( $package_json ) {46 public function test_package_json_node_engine( $package_json ) { 47 47 $this->assertArrayHasKey( 'engines', $package_json ); 48 48 $this->assertArrayHasKey( 'node', $package_json['engines'] ); … … 51 51 // Test some helper utility functions. 52 52 53 function test_strip_ws() {53 public function test_strip_ws() { 54 54 $this->assertSame( '', strip_ws( '' ) ); 55 55 $this->assertSame( 'foo', strip_ws( 'foo' ) ); … … 78 78 } 79 79 80 function test_mask_input_value() {80 public function test_mask_input_value() { 81 81 $in = <<<EOF 82 82 <h2>Assign Authors</h2>
Note: See TracChangeset
for help on using the changeset viewer.