Skip to content

Commit

Permalink
Remove test that isn't asserting anything
Browse files Browse the repository at this point in the history
  • Loading branch information
anubisthejackle committed Mar 20, 2024
1 parent 90915f0 commit 17bb288
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tests/php/test-fieldmanager-context-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,26 +145,4 @@ public function test_context_save() {
$this->assertEquals( $saved_value['test_extended'][1]['extext'], array( 'second1', 'second2', 'second3' ) );
$this->assertEquals( $saved_value['test_extended'][3]['extext'][0], 'fourth' );
}

public function test_programmatic_save_posts() {
$this->expectNotToPerformAssertions();

$base = $this->_get_elements();
$base->add_meta_box( 'test meta box', 'post' );

$post_id = wp_insert_post(
array(
'post_type' => 'post',
'post_name' => 'test-post',
'post_title' => 'Test Post',
'post_date' => '2012-10-25 12:34:56',
)
);
wp_update_post(
array(
'ID' => $post_id,
'post_content' => 'Lorem ipsum dolor sit amet.',
)
);
}
}

0 comments on commit 17bb288

Please sign in to comment.