Changeset 51196
- Timestamp:
- 06/22/2021 04:34:29 AM (3 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/custom-css-setting.php
r50450 r51196 381 381 $unclosed_comment = $basic_css . '</style>'; 382 382 $result = $this->setting->validate( $unclosed_comment ); 383 $this->assert True( array_key_exists( 'illegal_markup', $result->errors ));383 $this->assertArrayHasKey( 'illegal_markup', $result->errors ); 384 384 } 385 385 } -
trunk/tests/phpunit/tests/post/revisions.php
r51138 r51196 624 624 } 625 625 ); 626 626 627 $this->assertSame( $generic, wp_revisions_to_keep( $post ) ); 627 628 … … 634 635 } 635 636 ); 637 636 638 $this->assertSame( $expected, wp_revisions_to_keep( $post ) ); 637 639 } … … 643 645 */ 644 646 public function test_wp_save_post_revision_error() { 645 $post 647 $post = self::factory()->post->create_and_get( 646 648 array( 647 649 'ID' => PHP_INT_MAX, 648 650 ) 649 651 ); 652 650 653 $revision = _wp_put_post_revision( $post ); 651 $this->assertTrue( is_wp_error( $revision ) ); 654 655 $this->assertWPError( $revision ); 652 656 } 653 657 } -
trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php
r51149 r51196 158 158 $fse = WP_Theme_JSON_Resolver::theme_has_support(); 159 159 160 $this->assert Same( false,$default );161 $this->assert Same( true,$fse );160 $this->assertFalse( $default ); 161 $this->assertTrue( $fse ); 162 162 } 163 163 -
trunk/tests/phpunit/tests/user/query.php
r49603 r51196 1297 1297 1298 1298 foreach ( $query_vars as $query_var ) { 1299 $this->assert True( array_key_exists( $query_var, $q->query_vars ), "$query_var does not exist." );1299 $this->assertArrayHasKey( $query_var, $q->query_vars, "$query_var does not exist." ); 1300 1300 } 1301 1301
Note: See TracChangeset
for help on using the changeset viewer.