Skip to content

Commit e075d86

Browse files
committed
Tests: Remove unrelated option setup in REST settings test.
Remove the `posts_per_page` update from `test_update_item_with_invalid_enum()`, which only checks rejection of an invalid default_ping_status value. Developed in: #13450 Props wongjn. See #65819. git-svn-id: https://develop.svn.wordpress.org/trunk@63546 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2419dda commit e075d86

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎tests/phpunit/tests/rest-api/rest-settings-controller.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,6 @@ public function test_update_item_with_null() {
683683
}
684684

685685
public function test_update_item_with_invalid_enum() {
686-
update_option( 'posts_per_page', 9 );
687-
688686
wp_set_current_user( self::$administrator );
689687
$request = new WP_REST_Request( 'PUT', '/wp/v2/settings' );
690688
$request->set_param( 'default_ping_status', 'open&closed' );

0 commit comments

Comments
 (0)