Changeset 412 in tests
- Timestamp:
- 08/06/2011 02:43:30 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_includes_post.php
r407 r412 6 6 function setUp() { 7 7 parent::setUp(); 8 $this->author = get_userdatabylogin(WP_USER_NAME);8 $this->author_id = $this->_make_user('editor'); 9 9 _set_cron_array(array()); 10 10 $this->post_ids = array(); … … 15 15 foreach ($this->post_ids as $id) 16 16 wp_delete_post($id); 17 wp_delete_user( $this->author_id ); 17 18 } 18 19 … … 26 27 function test_vb_insert_get() { 27 28 $post = array( 28 'post_author' => $this->author ->ID,29 'post_author' => $this->author_id, 29 30 'post_status' => 'publish', 30 31 'post_content' => rand_str(), … … 53 54 54 55 $post = array( 55 'post_author' => $this->author ->ID,56 'post_author' => $this->author_id, 56 57 'post_status' => 'publish', 57 58 'post_content' => rand_str(), … … 88 89 89 90 $post = array( 90 'post_author' => $this->author ->ID,91 'post_author' => $this->author_id, 91 92 'post_status' => 'publish', 92 93 'post_content' => rand_str(), … … 122 123 } 123 124 124 function test_vb_insert_future_edit_bug() {125 function test_vb_insert_future_edit_bug() { 125 126 // future post bug: posts get published at the wrong time if you edit the timestamp 126 127 // http://trac.wordpress.org/ticket/4710 … … 130 131 131 132 $post = array( 132 'post_author' => $this->author ->ID,133 'post_author' => $this->author_id, 133 134 'post_status' => 'publish', 134 135 'post_content' => rand_str(), … … 170 171 171 172 $post = array( 172 'post_author' => $this->author ->ID,173 'post_author' => $this->author_id, 173 174 'post_status' => 'draft', 174 175 'post_content' => rand_str(), … … 202 203 203 204 $post = array( 204 'post_author' => $this->author ->ID,205 'post_author' => $this->author_id, 205 206 'post_status' => 'publish', 206 207 'post_content' => rand_str(), … … 243 244 foreach ($statuses as $status) { 244 245 $post = array( 245 'post_author' => $this->author ->ID,246 'post_author' => $this->author_id, 246 247 'post_status' => 'publish', 247 248 'post_content' => rand_str(), … … 283 284 284 285 $post = array( 285 'post_author' => $this->author ->ID,286 'post_author' => $this->author_id, 286 287 'post_status' => 'private', 287 288 'post_content' => rand_str(), … … 314 315 315 316 $post = array( 316 'post_author' => $this->author ->ID,317 'post_author' => $this->author_id, 317 318 'post_status' => 'publish', 318 319 'post_content' => rand_str(), … … 356 357 357 358 $post = array( 358 'post_author' => $this->author ->ID,359 'post_author' => $this->author_id, 359 360 'post_status' => 'publish', 360 361 'post_content' => rand_str(), … … 383 384 384 385 $post = array( 385 'post_author' => $this->author ->ID,386 'post_author' => $this->author_id, 386 387 'post_status' => 'publish', 387 388 'post_content' => rand_str(),
Note: See TracChangeset
for help on using the changeset viewer.