mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Tests: Remove references to post status public.
Replace invalid post status `public` with the valid status `publish`. See #51802. git-svn-id: https://develop.svn.wordpress.org/trunk@49974 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2449,7 +2449,7 @@ EOF;
|
||||
*/
|
||||
public function test_return_type_when_inserting_attachment_with_error_in_data() {
|
||||
$data = array(
|
||||
'post_status' => 'public',
|
||||
'post_status' => 'publish',
|
||||
'post_content' => 'Attachment content',
|
||||
'post_title' => 'Attachment Title',
|
||||
'post_date' => '2012-02-30 00:00:00',
|
||||
|
||||
@@ -403,7 +403,7 @@ class Tests_Post extends WP_UnitTestCase {
|
||||
function test_vb_insert_invalid_date() {
|
||||
$post = array(
|
||||
'post_author' => self::$editor_id,
|
||||
'post_status' => 'public',
|
||||
'post_status' => 'publish',
|
||||
'post_content' => rand_str(),
|
||||
'post_title' => rand_str(),
|
||||
'post_date' => '2012-02-30 00:00:00',
|
||||
@@ -785,7 +785,7 @@ class Tests_Post extends WP_UnitTestCase {
|
||||
$title = rand_str();
|
||||
$post_data = array(
|
||||
'post_author' => self::$editor_id,
|
||||
'post_status' => 'public',
|
||||
'post_status' => 'publish',
|
||||
'post_content' => rand_str(),
|
||||
'post_title' => $title,
|
||||
'tax_input' => array(
|
||||
@@ -971,7 +971,7 @@ class Tests_Post extends WP_UnitTestCase {
|
||||
$post_id = self::factory()->post->create(
|
||||
array(
|
||||
'post_author' => self::$editor_id,
|
||||
'post_status' => 'public',
|
||||
'post_status' => 'publish',
|
||||
'post_content' => rand_str(),
|
||||
'post_title' => rand_str(),
|
||||
)
|
||||
@@ -989,7 +989,7 @@ class Tests_Post extends WP_UnitTestCase {
|
||||
$post_id = self::factory()->post->create(
|
||||
array(
|
||||
'post_author' => self::$editor_id,
|
||||
'post_status' => 'public',
|
||||
'post_status' => 'publish',
|
||||
'post_content' => rand_str(),
|
||||
'post_title' => rand_str(),
|
||||
'post_type' => 'page',
|
||||
@@ -1010,7 +1010,7 @@ class Tests_Post extends WP_UnitTestCase {
|
||||
$post_id = self::factory()->post->create(
|
||||
array(
|
||||
'post_author' => self::$editor_id,
|
||||
'post_status' => 'public',
|
||||
'post_status' => 'publish',
|
||||
'post_content' => rand_str(),
|
||||
'post_title' => rand_str(),
|
||||
'post_type' => $post_type,
|
||||
@@ -1032,7 +1032,7 @@ class Tests_Post extends WP_UnitTestCase {
|
||||
$post_id = self::factory()->post->create(
|
||||
array(
|
||||
'post_author' => self::$editor_id,
|
||||
'post_status' => 'public',
|
||||
'post_status' => 'publish',
|
||||
'post_content' => rand_str(),
|
||||
'post_title' => rand_str(),
|
||||
'post_type' => $post_type,
|
||||
|
||||
Reference in New Issue
Block a user