Changeset 51968 for trunk/tests/phpunit/tests/xmlrpc/wp/editPost.php
- Timestamp:
- 11/01/2021 10:22:49 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/editPost.php
r51587 r51968 469 469 */ 470 470 function test_draft_not_prematurely_published() { 471 if ( PHP_VERSION_ID >= 80100 ) { 472 /* 473 * For the time being, ignoring PHP 8.1 "null to non-nullable" deprecations coming in 474 * via hooked in filter functions until a more structural solution to the 475 * "missing input validation" conundrum has been architected and implemented. 476 */ 477 $this->expectDeprecation(); 478 $this->expectDeprecationMessageMatches( '`Passing null to parameter \#[0-9]+ \(\$[^\)]+\) of type [^ ]+ is deprecated`' ); 479 } 480 471 481 $editor_id = $this->make_user_by_role( 'editor' ); 472 482 … … 505 515 */ 506 516 function test_draft_not_assigned_published_date() { 517 if ( PHP_VERSION_ID >= 80100 ) { 518 /* 519 * For the time being, ignoring PHP 8.1 "null to non-nullable" deprecations coming in 520 * via hooked in filter functions until a more structural solution to the 521 * "missing input validation" conundrum has been architected and implemented. 522 */ 523 $this->expectDeprecation(); 524 $this->expectDeprecationMessageMatches( '`Passing null to parameter \#[0-9]+ \(\$[^\)]+\) of type [^ ]+ is deprecated`' ); 525 } 526 507 527 $editor_id = $this->make_user_by_role( 'editor' ); 508 528
Note: See TracChangeset
for help on using the changeset viewer.