Changeset 52389
- Timestamp:
- 12/19/2021 01:42:37 PM (3 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 46 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/actions.php
r52010 r52389 241 241 $this->assertSame( 0, did_action( $tag2 ) ); 242 242 243 // Do action $tag2 a random number oftimes.244 $count = rand( 0, 10 );243 // Do action $tag2 10 times. 244 $count = 10; 245 245 for ( $i = 0; $i < $count; $i++ ) { 246 246 do_action( $tag2 ); -
trunk/tests/phpunit/tests/admin/includesPlugin.php
r52010 r52389 488 488 489 489 $dropins = get_dropins(); 490 $this->assertSame( array( 'advanced-cache.php' ), array_keys( $dropins ) );491 490 492 491 unlink( $p1[1] ); 493 492 unlink( $p2[1] ); 494 493 494 $this->assertSame( array( 'advanced-cache.php' ), array_keys( $dropins ) ); 495 495 496 // Clean up. 496 497 $this->_restore_drop_ins(); … … 510 511 $p = $this->_create_plugin( "<?php\n/*\nPlugin Name: test\nNetwork: true" ); 511 512 512 $ this->assertTrue( is_network_only_plugin( $p[0] ));513 $network_only = is_network_only_plugin( $p[0] ); 513 514 514 515 unlink( $p[1] ); 516 517 $this->assertTrue( $network_only ); 515 518 } 516 519 … … 572 575 update_option( 'uninstall_plugins', $uninstallable_plugins ); 573 576 574 $ this->assertTrue( is_uninstallable_plugin( $plugin[0] ));577 $is_uninstallable = is_uninstallable_plugin( $plugin[0] ); 575 578 576 579 unset( $uninstallable_plugins[ $plugin[0] ] ); … … 578 581 579 582 unlink( $plugin[1] ); 583 584 $this->assertTrue( $is_uninstallable ); 580 585 } 581 586 … … 596 601 private function _create_plugin( $data = "<?php\n/*\nPlugin Name: Test\n*/", $filename = false, $dir_path = false ) { 597 602 if ( false === $filename ) { 598 $filename = rand_str(). '.php';603 $filename = __FUNCTION__ . '.php'; 599 604 } 600 605 … … 603 608 } 604 609 605 $full_name = $dir_path . '/' . wp_unique_filename( $dir_path, $filename ); 610 $filename = wp_unique_filename( $dir_path, $filename ); 611 $full_name = $dir_path . '/' . $filename; 606 612 607 613 $file = fopen( $full_name, 'w' ); -
trunk/tests/phpunit/tests/cron.php
r52010 r52389 271 271 public function test_unschedule_hook() { 272 272 $hook = __FUNCTION__; 273 $args = array( rand_str());273 $args = array( 'foo' ); 274 274 275 275 // Schedule several events with and without arguments. -
trunk/tests/phpunit/tests/date/xmlrpc.php
r52010 r52389 229 229 'comment_author_url' => 'http://example.com/', 230 230 'comment_author_email' => 'example@example.com', 231 'comment_content' => rand_str( 100 ),231 'comment_content' => 'Hello, world!', 232 232 'comment_approved' => '1', 233 233 ); -
trunk/tests/phpunit/tests/file.php
r52010 r52389 97 97 } 98 98 99 // Write some randomcontents.100 $c = rand_str();99 // Write some contents. 100 $c = 'foo'; 101 101 fwrite( $fp, $c ); 102 102 fclose( $fp ); -
trunk/tests/phpunit/tests/hooks/addFilter.php
r50342 r52389 16 16 $hook = new WP_Hook(); 17 17 $tag = __FUNCTION__; 18 $priority = rand( 1, 100 );19 $accepted_args = rand( 1, 100 );18 $priority = 1; 19 $accepted_args = 2; 20 20 21 21 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 31 31 $hook = new WP_Hook(); 32 32 $tag = __FUNCTION__; 33 $priority = rand( 1, 100 );34 $accepted_args = rand( 1, 100 );33 $priority = 1; 34 $accepted_args = 2; 35 35 36 36 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 45 45 $hook = new WP_Hook(); 46 46 $tag = __FUNCTION__; 47 $priority = rand( 1, 100 );48 $accepted_args = rand( 1, 100 );47 $priority = 1; 48 $accepted_args = 2; 49 49 50 50 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 60 60 $hook = new WP_Hook(); 61 61 $tag = __FUNCTION__; 62 $priority = rand( 1, 100 );63 $accepted_args = rand( 1, 100 );62 $priority = 1; 63 $accepted_args = 2; 64 64 65 65 $hook->add_filter( $tag, $callback_one, $priority, $accepted_args ); … … 75 75 $hook = new WP_Hook(); 76 76 $tag = __FUNCTION__; 77 $priority = rand( 1, 100 );78 $accepted_args = rand( 1, 100 );77 $priority = 1; 78 $accepted_args = 2; 79 79 80 80 $hook->add_filter( $tag, $callback_one, $priority, $accepted_args ); … … 90 90 $hook = new WP_Hook(); 91 91 $tag = __FUNCTION__; 92 $priority = rand( 1, 100 );93 $accepted_args = rand( 1, 100 );92 $priority = 1; 93 $accepted_args = 2; 94 94 95 95 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 104 104 $hook = new WP_Hook(); 105 105 $tag = __FUNCTION__; 106 $priority = rand( 1, 100 );107 $accepted_args = rand( 1, 100 );106 $priority = 1; 107 $accepted_args = 2; 108 108 109 109 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); -
trunk/tests/phpunit/tests/hooks/applyFilters.php
r50342 r52389 14 14 $hook = new WP_Hook(); 15 15 $tag = __FUNCTION__; 16 $priority = rand( 1, 100 );17 $accepted_args = rand( 1, 100 );16 $priority = 1; 17 $accepted_args = 2; 18 18 $arg = __FUNCTION__ . '_arg'; 19 19 … … 31 31 $hook = new WP_Hook(); 32 32 $tag = __FUNCTION__; 33 $priority = rand( 1, 100 );34 $accepted_args = rand( 1, 100 );33 $priority = 1; 34 $accepted_args = 2; 35 35 $arg = __FUNCTION__ . '_arg'; 36 36 -
trunk/tests/phpunit/tests/hooks/doAction.php
r51568 r52389 22 22 $hook = new WP_Hook(); 23 23 $tag = __FUNCTION__; 24 $priority = rand( 1, 100 );25 $accepted_args = rand( 1, 100 );24 $priority = 1; 25 $accepted_args = 2; 26 26 $arg = __FUNCTION__ . '_arg'; 27 27 … … 37 37 $hook = new WP_Hook(); 38 38 $tag = __FUNCTION__; 39 $priority = rand( 1, 100 );40 $accepted_args = rand( 1, 100 );39 $priority = 1; 40 $accepted_args = 2; 41 41 $arg = __FUNCTION__ . '_arg'; 42 42 … … 55 55 $hook = new WP_Hook(); 56 56 $tag = __FUNCTION__; 57 $priority = rand( 1, 100 );58 $accepted_args = rand( 1, 100 );57 $priority = 1; 58 $accepted_args = 2; 59 59 $arg = __FUNCTION__ . '_arg'; 60 60 … … 74 74 $hook = new WP_Hook(); 75 75 $tag = __FUNCTION__; 76 $priority = rand( 1, 100 );77 $accepted_args = rand( 1, 100 );76 $priority = 1; 77 $accepted_args = 2; 78 78 $arg = __FUNCTION__ . '_arg'; 79 79 … … 90 90 $hook = new WP_Hook(); 91 91 $tag = __FUNCTION__; 92 $priority = rand( 1, 100 );92 $priority = 1; 93 93 $accepted_args = 0; 94 94 $arg = __FUNCTION__ . '_arg'; … … 104 104 $hook = new WP_Hook(); 105 105 $tag = __FUNCTION__; 106 $priority = rand( 1, 100 );106 $priority = 1; 107 107 $accepted_args = 1; 108 108 $arg = __FUNCTION__ . '_arg'; … … 118 118 $hook = new WP_Hook(); 119 119 $tag = __FUNCTION__; 120 $priority = rand( 1, 100 );120 $priority = 100; 121 121 $accepted_args = 1000; 122 122 $arg = __FUNCTION__ . '_arg'; -
trunk/tests/phpunit/tests/hooks/doAllHook.php
r50342 r52389 14 14 $hook = new WP_Hook(); 15 15 $tag = 'all'; 16 $priority = rand( 1, 100 );17 $accepted_args = rand( 1, 100 );16 $priority = 1; 17 $accepted_args = 2; 18 18 $arg = 'all_arg'; 19 19 -
trunk/tests/phpunit/tests/hooks/hasFilter.php
r50342 r52389 13 13 $hook = new WP_Hook(); 14 14 $tag = __FUNCTION__; 15 $priority = rand( 1, 100 );16 $accepted_args = rand( 1, 100 );15 $priority = 1; 16 $accepted_args = 2; 17 17 18 18 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 26 26 $hook = new WP_Hook(); 27 27 $tag = __FUNCTION__; 28 $priority = rand( 1, 100 );29 $accepted_args = rand( 1, 100 );28 $priority = 1; 29 $accepted_args = 2; 30 30 31 31 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 38 38 $hook = new WP_Hook(); 39 39 $tag = __FUNCTION__; 40 $priority = rand( 1, 100 );41 $accepted_args = rand( 1, 100 );40 $priority = 1; 41 $accepted_args = 2; 42 42 43 43 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 50 50 $hook = new WP_Hook(); 51 51 $tag = __FUNCTION__; 52 $priority = rand( 1, 100 );53 $accepted_args = rand( 1, 100 );52 $priority = 1; 53 $accepted_args = 2; 54 54 55 55 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 75 75 $hook = new WP_Hook(); 76 76 $tag = __FUNCTION__; 77 $priority = rand( 1, 100 );78 $accepted_args = rand( 1, 100 );77 $priority = 1; 78 $accepted_args = 2; 79 79 80 80 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); -
trunk/tests/phpunit/tests/hooks/hasFilters.php
r50342 r52389 13 13 $hook = new WP_Hook(); 14 14 $tag = __FUNCTION__; 15 $priority = rand( 1, 100 );16 $accepted_args = rand( 1, 100 );15 $priority = 1; 16 $accepted_args = 2; 17 17 18 18 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 30 30 $hook = new WP_Hook(); 31 31 $tag = __FUNCTION__; 32 $priority = rand( 1, 100 );33 $accepted_args = rand( 1, 100 );32 $priority = 1; 33 $accepted_args = 2; 34 34 35 35 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 42 42 $hook = new WP_Hook(); 43 43 $tag = __FUNCTION__; 44 $priority = rand( 1, 100 );45 $accepted_args = rand( 1, 100 );44 $priority = 1; 45 $accepted_args = 2; 46 46 47 47 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); -
trunk/tests/phpunit/tests/hooks/iterator.php
r50342 r52389 14 14 $hook = new WP_Hook(); 15 15 $tag = __FUNCTION__; 16 $priority = rand( 1, 100 );17 $accepted_args = rand( 1, 100 );16 $priority = 1; 17 $accepted_args = 2; 18 18 19 19 $hook->add_filter( $tag, $callback_one, $priority, $accepted_args ); -
trunk/tests/phpunit/tests/hooks/preinitHooks.php
r50342 r52389 11 11 public function test_array_to_hooks() { 12 12 $tag1 = __FUNCTION__ . '_1'; 13 $priority1 = rand( 1, 100 );13 $priority1 = 1; 14 14 $tag2 = __FUNCTION__ . '_2'; 15 $priority2 = rand( 1, 100 );15 $priority2 = 2; 16 16 $filters = array( 17 17 $tag1 => array( -
trunk/tests/phpunit/tests/hooks/removeAllFilters.php
r50342 r52389 13 13 $hook = new WP_Hook(); 14 14 $tag = __FUNCTION__; 15 $priority = rand( 1, 100 );16 $accepted_args = rand( 1, 100 );15 $priority = 1; 16 $accepted_args = 2; 17 17 18 18 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 28 28 $hook = new WP_Hook(); 29 29 $tag = __FUNCTION__; 30 $priority = rand( 1, 100 );31 $accepted_args = rand( 1, 100 );30 $priority = 1; 31 $accepted_args = 2; 32 32 33 33 $hook->add_filter( $tag, $callback_one, $priority, $accepted_args ); -
trunk/tests/phpunit/tests/hooks/removeFilter.php
r51397 r52389 13 13 $hook = new WP_Hook(); 14 14 $tag = __FUNCTION__; 15 $priority = rand( 1, 100 );16 $accepted_args = rand( 1, 100 );15 $priority = 1; 16 $accepted_args = 2; 17 17 18 18 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 27 27 $hook = new WP_Hook(); 28 28 $tag = __FUNCTION__; 29 $priority = rand( 1, 100 );30 $accepted_args = rand( 1, 100 );29 $priority = 1; 30 $accepted_args = 2; 31 31 32 32 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 40 40 $hook = new WP_Hook(); 41 41 $tag = __FUNCTION__; 42 $priority = rand( 1, 100 );43 $accepted_args = rand( 1, 100 );42 $priority = 1; 43 $accepted_args = 2; 44 44 45 45 $hook->add_filter( $tag, $callback, $priority, $accepted_args ); … … 54 54 $hook = new WP_Hook(); 55 55 $tag = __FUNCTION__; 56 $priority = rand( 1, 100 );57 $accepted_args = rand( 1, 100 );56 $priority = 1; 57 $accepted_args = 2; 58 58 59 59 $hook->add_filter( $tag, $callback_one, $priority, $accepted_args ); … … 70 70 $hook = new WP_Hook(); 71 71 $tag = __FUNCTION__; 72 $priority = rand( 1, 100 );73 $accepted_args = rand( 1, 100 );72 $priority = 1; 73 $accepted_args = 2; 74 74 75 75 $hook->add_filter( $tag, $callback_one, $priority, $accepted_args ); -
trunk/tests/phpunit/tests/image/intermediateSize.php
r52010 r52389 182 182 */ 183 183 public function test_get_intermediate_sizes_by_array_zero_height() { 184 // Generate randomwidth.185 $ random_w = rand( 300, 400 );184 // Use this width. 185 $width = 300; 186 186 187 187 // Only one dimention match shouldn't return false positive (see: #17626). 188 add_image_size( 'test-size', $ random_w, 0, false );189 add_image_size( 'false-height', $ random_w, 100, true );188 add_image_size( 'test-size', $width, 0, false ); 189 add_image_size( 'false-height', $width, 100, true ); 190 190 191 191 $file = DIR_TESTDATA . '/images/waffles.jpg'; … … 193 193 194 194 $original = wp_get_attachment_metadata( $id ); 195 $image_w = $ random_w;195 $image_w = $width; 196 196 $image_h = round( ( $image_w / $original['width'] ) * $original['height'] ); 197 197 198 198 // Look for a size by array that exists. 199 199 // Note: Staying larger than 300px to miss default medium crop. 200 $image = image_get_intermediate_size( $id, array( $ random_w, 0 ) );200 $image = image_get_intermediate_size( $id, array( $width, 0 ) ); 201 201 202 202 // Test for the expected string because the array will by definition -
trunk/tests/phpunit/tests/post.php
r52010 r52389 69 69 'post_author' => self::$editor_id, 70 70 'post_status' => 'publish', 71 'post_content' => rand_str(),72 'post_title' => rand_str(),71 'post_content' => "{$post_type}_content", 72 'post_title' => "{$post_type}_title", 73 73 'tax_input' => array( 74 74 'post_tag' => 'tag1,tag2', … … 127 127 'post_author' => self::$editor_id, 128 128 'post_status' => 'publish', 129 'post_content' => rand_str(),130 'post_title' => rand_str(),129 'post_content' => 'content', 130 'post_title' => 'title', 131 131 'post_date' => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ), 132 132 ); … … 163 163 'post_author' => self::$editor_id, 164 164 'post_status' => 'publish', 165 'post_content' => rand_str(),166 'post_title' => rand_str(),165 'post_content' => 'content', 166 'post_title' => 'title', 167 167 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 168 168 ); … … 208 208 'post_author' => self::$editor_id, 209 209 'post_status' => 'publish', 210 'post_content' => rand_str(),211 'post_title' => rand_str(),210 'post_content' => 'content', 211 'post_title' => 'title', 212 212 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 213 213 ); … … 250 250 'post_author' => self::$editor_id, 251 251 'post_status' => 'draft', 252 'post_content' => rand_str(),253 'post_title' => rand_str(),252 'post_content' => 'content', 253 'post_title' => 'title', 254 254 'post_date' => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ), 255 255 ); … … 285 285 'post_author' => self::$editor_id, 286 286 'post_status' => 'publish', 287 'post_content' => rand_str(),288 'post_title' => rand_str(),287 'post_content' => 'content', 288 'post_title' => 'title', 289 289 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 290 290 ); … … 329 329 'post_author' => self::$editor_id, 330 330 'post_status' => 'publish', 331 'post_content' => rand_str(),332 'post_title' => rand_str(),331 'post_content' => "{$status}_content", 332 'post_title' => "{$status}_title", 333 333 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 334 334 ); … … 371 371 'post_author' => self::$editor_id, 372 372 'post_status' => 'private', 373 'post_content' => rand_str(),374 'post_title' => rand_str(),373 'post_content' => 'content', 374 'post_title' => 'title', 375 375 'post_date' => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ), 376 376 ); … … 405 405 'post_author' => self::$editor_id, 406 406 'post_status' => 'publish', 407 'post_content' => rand_str(),408 'post_title' => rand_str(),407 'post_content' => 'content', 408 'post_title' => 'title', 409 409 'post_date' => '2012-02-30 00:00:00', 410 410 ); … … 428 428 'post_author' => self::$editor_id, 429 429 'post_status' => 'publish', 430 'post_content' => rand_str(),431 'post_title' => rand_str(),430 'post_content' => 'content', 431 'post_title' => 'title', 432 432 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 433 433 ); … … 534 534 'post_author' => self::$editor_id, 535 535 'post_status' => 'publish', 536 'post_content' => rand_str(),537 'post_title' => rand_str(),536 'post_content' => 'content', 537 'post_title' => 'title', 538 538 'post_date' => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ), 539 539 ); … … 565 565 'post_author' => self::$editor_id, 566 566 'post_status' => 'publish', 567 'post_content' => rand_str(),567 'post_content' => 'content', 568 568 'post_title' => '', 569 569 'post_date' => '2007-10-31 06:15:00', … … 783 783 register_taxonomy( 'test_tax', 'post' ); 784 784 785 $title = rand_str();785 $title = 'title'; 786 786 $post_data = array( 787 787 'post_author' => self::$editor_id, 788 788 'post_status' => 'publish', 789 'post_content' => rand_str(),789 'post_content' => 'content', 790 790 'post_title' => $title, 791 791 'tax_input' => array( … … 907 907 908 908 $post = self::factory()->post->create( array( 'post_type' => $post_type ) ); 909 wp_set_object_terms( $post, rand_str(), $tax );909 wp_set_object_terms( $post, 'foo', $tax ); 910 910 911 911 $wp_tag_cloud = wp_tag_cloud( … … 974 974 'post_author' => self::$editor_id, 975 975 'post_status' => 'publish', 976 'post_content' => rand_str(),977 'post_title' => rand_str(),976 'post_content' => 'content', 977 'post_title' => 'title', 978 978 ) 979 979 ); … … 992 992 'post_author' => self::$editor_id, 993 993 'post_status' => 'publish', 994 'post_content' => rand_str(),995 'post_title' => rand_str(),994 'post_content' => 'content', 995 'post_title' => 'title', 996 996 'post_type' => 'page', 997 997 ) … … 1204 1204 'post_author' => self::$editor_id, 1205 1205 'post_status' => 'publish', 1206 'post_content' => rand_str(),1207 'post_title' => rand_str(),1206 'post_content' => 'content', 1207 'post_title' => 'title', 1208 1208 'post_date_gmt' => '2014-01-01 12:00:00', 1209 1209 ); -
trunk/tests/phpunit/tests/post/attachments.php
r52010 r52389 273 273 $post_id = wp_insert_post( 274 274 array( 275 'post_content' => rand_str(),276 'post_title' => rand_str(),275 'post_content' => 'content', 276 'post_title' => 'title', 277 277 ) 278 278 ); -
trunk/tests/phpunit/tests/post/meta.php
r52010 r52389 24 24 'post_author' => self::$author->ID, 25 25 'post_status' => 'publish', 26 'post_content' => rand_str(),27 'post_title' => rand_str(),26 'post_content' => 'content', 27 'post_title' => 'title', 28 28 ) 29 29 ); … … 33 33 'post_author' => self::$author->ID, 34 34 'post_status' => 'publish', 35 'post_content' => rand_str(),36 'post_title' => rand_str(),35 'post_content' => 'content', 36 'post_title' => 'title', 37 37 ) 38 38 ); -
trunk/tests/phpunit/tests/post/nav-menu.php
r52248 r52389 13 13 parent::set_up(); 14 14 15 $this->menu_id = wp_create_nav_menu( rand_str());15 $this->menu_id = wp_create_nav_menu( 'foo' ); 16 16 } 17 17 … … 256 256 public function test_wp_setup_nav_menu_item_for_post_type_archive() { 257 257 258 $post_type_slug = rand_str( 12 );259 $post_type_description = rand_str();258 $post_type_slug = 'fooo-bar-baz'; 259 $post_type_description = 'foo'; 260 260 register_post_type( 261 261 $post_type_slug, … … 289 289 public function test_wp_setup_nav_menu_item_for_post_type_archive_no_description() { 290 290 291 $post_type_slug = rand_str( 12 );291 $post_type_slug = 'fooo-bar-baz'; 292 292 $post_type_description = ''; 293 293 register_post_type( … … 320 320 public function test_wp_setup_nav_menu_item_for_post_type_archive_custom_description() { 321 321 322 $post_type_slug = rand_str( 12 );323 $post_type_description = rand_str();322 $post_type_slug = 'fooo-bar-baz'; 323 $post_type_description = 'foobaz'; 324 324 register_post_type( 325 325 $post_type_slug, … … 332 332 ); 333 333 334 $menu_item_description = rand_str();334 $menu_item_description = 'foo_description'; 335 335 336 336 $post_type_archive_item_id = wp_update_nav_menu_item( … … 355 355 public function test_wp_setup_nav_menu_item_for_unknown_post_type_archive_no_description() { 356 356 357 $post_type_slug = rand_str( 12 );357 $post_type_slug = 'fooo-bar-baz'; 358 358 359 359 $post_type_archive_item_id = wp_update_nav_menu_item( -
trunk/tests/phpunit/tests/post/query.php
r52010 r52389 133 133 array( 134 134 'post_type' => 'page', 135 'menu_order' => rand( 1, 100 ),135 'menu_order' => 1, 136 136 ) 137 137 ); … … 139 139 array( 140 140 'post_type' => 'page', 141 'menu_order' => rand( 1, 100 ),141 'menu_order' => 2, 142 142 ) 143 143 ); … … 146 146 'post_type' => 'page', 147 147 'post_parent' => $post_id2, 148 'menu_order' => rand( 1, 100 ),148 'menu_order' => 3, 149 149 ) 150 150 ); … … 153 153 'post_type' => 'page', 154 154 'post_parent' => $post_id2, 155 'menu_order' => rand( 1, 100 ),155 'menu_order' => 4, 156 156 ) 157 157 ); … … 159 159 array( 160 160 'post_type' => 'page', 161 'menu_order' => rand( 1, 100 ),161 'menu_order' => 5, 162 162 ) 163 163 ); … … 220 220 array( 221 221 'post_mime_type' => 'image/jpeg', 222 'menu_order' => rand( 1, 100 ),222 'menu_order' => 1, 223 223 ) 224 224 ); … … 228 228 array( 229 229 'post_mime_type' => 'image/jpeg', 230 'menu_order' => rand( 1, 100 ),230 'menu_order' => 2, 231 231 ) 232 232 ); … … 236 236 array( 237 237 'post_mime_type' => 'image/jpeg', 238 'menu_order' => rand( 1, 100 ),238 'menu_order' => 3, 239 239 ) 240 240 ); … … 244 244 array( 245 245 'post_mime_type' => 'image/jpeg', 246 'menu_order' => rand( 1, 100 ),246 'menu_order' => 4, 247 247 ) 248 248 ); … … 252 252 array( 253 253 'post_mime_type' => 'image/jpeg', 254 'menu_order' => rand( 1, 100 ),254 'menu_order' => 5, 255 255 ) 256 256 ); -
trunk/tests/phpunit/tests/post/revisions.php
r52095 r52389 18 18 public function set_up() { 19 19 parent::set_up(); 20 $this->post_type = rand_str( 20 );20 $this->post_type = 'test-revision'; 21 21 } 22 22 … … 447 447 'post_status' => 'publish', 448 448 'ID' => $post_id, 449 'post_content' => rand_str(),449 'post_content' => 'content', 450 450 ) 451 451 ); -
trunk/tests/phpunit/tests/post/types.php
r52010 r52389 22 22 parent::set_up(); 23 23 24 $this->post_type = rand_str( 20 );24 $this->post_type = 'foo1'; 25 25 } 26 26 -
trunk/tests/phpunit/tests/query/commentCount.php
r52248 r52389 22 22 $post_id = $factory->post->create( 23 23 array( 24 'post_content' => 1 . rand_str() . 'about',24 'post_content' => '1 about', 25 25 'post_type' => self::$post_type, 26 26 ) … … 31 31 $post_id = $factory->post->create( 32 32 array( 33 'post_content' => 1 . rand_str() . 'about',33 'post_content' => '2 about', 34 34 'post_type' => self::$post_type, 35 35 ) … … 42 42 $post_id = $factory->post->create( 43 43 array( 44 'post_content' => 1 . rand_str() . 'about',44 'post_content' => '3 about', 45 45 'post_type' => self::$post_type, 46 46 ) … … 53 53 $post_id = $factory->post->create( 54 54 array( 55 'post_content' => 1 . rand_str() . 'about',55 'post_content' => '4 about', 56 56 'post_type' => self::$post_type, 57 57 ) -
trunk/tests/phpunit/tests/query/search.php
r52010 r52389 11 11 parent::set_up(); 12 12 13 $this->post_type = rand_str( 12 );13 $this->post_type = 'foo1'; 14 14 register_post_type( $this->post_type ); 15 15 … … 37 37 self::factory()->post->create( 38 38 array( 39 'post_content' => $i . rand_str() . ' about',39 'post_content' => "{$i} about", 40 40 'post_type' => $this->post_type, 41 41 ) -
trunk/tests/phpunit/tests/query/taxQuery.php
r51367 r52389 1210 1210 $tag_id = self::factory()->term->create( 1211 1211 array( 1212 'slug' => rand_str(),1213 'name' => rand_str(),1212 'slug' => 'foo-bar', 1213 'name' => 'Foo Bar', 1214 1214 ) 1215 1215 ); -
trunk/tests/phpunit/tests/rest-api/rest-attachments-controller.php
r52068 r52389 523 523 public function test_get_items_invalid_date() { 524 524 $request = new WP_REST_Request( 'GET', '/wp/v2/media' ); 525 $request->set_param( 'after', rand_str());526 $request->set_param( 'before', rand_str());525 $request->set_param( 'after', 'foo' ); 526 $request->set_param( 'before', 'bar' ); 527 527 $response = rest_get_server()->dispatch( $request ); 528 528 $this->assertErrorResponse( 'rest_invalid_param', $response, 400 ); … … 571 571 public function test_get_items_invalid_modified_date() { 572 572 $request = new WP_REST_Request( 'GET', '/wp/v2/media' ); 573 $request->set_param( 'modified_after', rand_str());574 $request->set_param( 'modified_before', rand_str());573 $request->set_param( 'modified_after', 'foo' ); 574 $request->set_param( 'modified_before', 'bar' ); 575 575 $response = rest_get_server()->dispatch( $request ); 576 576 $this->assertErrorResponse( 'rest_invalid_param', $response, 400 ); -
trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php
r51568 r52389 889 889 public function test_get_comments_invalid_date() { 890 890 $request = new WP_REST_Request( 'GET', '/wp/v2/comments' ); 891 $request->set_param( 'after', rand_str());892 $request->set_param( 'before', rand_str());891 $request->set_param( 'after', 'foo' ); 892 $request->set_param( 'before', 'bar' ); 893 893 $response = rest_get_server()->dispatch( $request ); 894 894 $this->assertErrorResponse( 'rest_invalid_param', $response, 400 ); … … 1478 1478 'author_url' => 'http://timothylovejoy.jr', 1479 1479 'content' => 'It\'s all over\, people! We don\'t have a prayer!', 1480 'date' => rand_str(),1480 'date' => 'foo-bar', 1481 1481 ); 1482 1482 … … 2626 2626 2627 2627 $params = array( 2628 'content' => rand_str(),2629 'date' => rand_str(),2628 'content' => 'content', 2629 'date' => 'foo', 2630 2630 ); 2631 2631 … … 2642 2642 2643 2643 $params = array( 2644 'content' => rand_str(),2645 'date_gmt' => rand_str(),2644 'content' => 'content', 2645 'date_gmt' => 'foo', 2646 2646 ); 2647 2647 … … 2771 2771 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/comments/%s', $child_comment ) ); 2772 2772 $request->set_param( 'parent', $comment_id_1 ); 2773 $request->set_param( 'content', rand_str());2773 $request->set_param( 'content', 'foo bar' ); 2774 2774 $response = rest_get_server()->dispatch( $request ); 2775 2775 $this->assertSame( 200, $response->get_status() ); -
trunk/tests/phpunit/tests/rest-api/rest-pages-controller.php
r52068 r52389 331 331 public function test_get_items_invalid_date() { 332 332 $request = new WP_REST_Request( 'GET', '/wp/v2/pages' ); 333 $request->set_param( 'after', rand_str());334 $request->set_param( 'before', rand_str());333 $request->set_param( 'after', 'foo' ); 334 $request->set_param( 'before', 'bar' ); 335 335 $response = rest_get_server()->dispatch( $request ); 336 336 $this->assertErrorResponse( 'rest_invalid_param', $response, 400 ); … … 370 370 public function test_get_items_invalid_modified_date() { 371 371 $request = new WP_REST_Request( 'GET', '/wp/v2/pages' ); 372 $request->set_param( 'modified_after', rand_str());373 $request->set_param( 'modified_before', rand_str());372 $request->set_param( 'modified_after', 'foo' ); 373 $request->set_param( 'modified_before', 'bar' ); 374 374 $response = rest_get_server()->dispatch( $request ); 375 375 $this->assertErrorResponse( 'rest_invalid_param', $response, 400 ); -
trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php
r52310 r52389 1695 1695 public function test_get_items_invalid_date() { 1696 1696 $request = new WP_REST_Request( 'GET', '/wp/v2/posts' ); 1697 $request->set_param( 'after', rand_str());1698 $request->set_param( 'before', rand_str());1697 $request->set_param( 'after', 'foo' ); 1698 $request->set_param( 'before', 'bar' ); 1699 1699 $response = rest_get_server()->dispatch( $request ); 1700 1700 $this->assertErrorResponse( 'rest_invalid_param', $response, 400 ); … … 1720 1720 public function test_get_items_invalid_modified_date() { 1721 1721 $request = new WP_REST_Request( 'GET', '/wp/v2/posts' ); 1722 $request->set_param( 'modified_after', rand_str());1723 $request->set_param( 'modified_before', rand_str());1722 $request->set_param( 'modified_after', 'foo' ); 1723 $request->set_param( 'modified_before', 'bar' ); 1724 1724 $response = rest_get_server()->dispatch( $request ); 1725 1725 $this->assertErrorResponse( 'rest_invalid_param', $response, 400 ); … … 2698 2698 array( 2699 2699 'post_mime_type' => 'image/jpeg', 2700 'menu_order' => rand( 1, 100 ),2700 'menu_order' => 1, 2701 2701 ) 2702 2702 ); … … 3311 3311 wp_set_current_user( self::$editor_id ); 3312 3312 3313 $new_content = rand_str();3313 $new_content = 'foo bar baz'; 3314 3314 $expected_modified = current_time( 'mysql' ); 3315 3315 … … 3376 3376 $params = $this->set_post_data( 3377 3377 array( 3378 'date' => rand_str(),3378 'date' => 'foo', 3379 3379 ) 3380 3380 ); … … 3391 3391 $params = $this->set_post_data( 3392 3392 array( 3393 'date_gmt' => rand_str(),3393 'date_gmt' => 'foo', 3394 3394 ) 3395 3395 ); -
trunk/tests/phpunit/tests/rewrite.php
r52010 r52389 174 174 delete_option( 'rewrite_rules' ); 175 175 176 $post_type = rand_str( 12 );176 $post_type = 'url_to_postid'; 177 177 register_post_type( $post_type, array( 'public' => true ) ); 178 178 -
trunk/tests/phpunit/tests/rewrite/numericSlugs.php
r51568 r52389 24 24 'post_author' => $this->author_id, 25 25 'post_status' => 'publish', 26 'post_content' => rand_str(),26 'post_content' => 'content', 27 27 'post_title' => '', 28 28 'post_name' => '2015', … … 54 54 'post_author' => $this->author_id, 55 55 'post_status' => 'publish', 56 'post_content' => rand_str(),56 'post_content' => 'content', 57 57 'post_title' => '', 58 58 'post_name' => '2015', … … 81 81 'post_author' => $this->author_id, 82 82 'post_status' => 'publish', 83 'post_content' => rand_str(),83 'post_content' => 'content', 84 84 'post_title' => '2015', 85 85 'post_date' => '2015-02-01 01:00:00', … … 99 99 'post_author' => $this->author_id, 100 100 'post_status' => 'publish', 101 'post_content' => rand_str(),101 'post_content' => 'content', 102 102 'post_title' => '2015', 103 103 'post_date' => '2015-02-01 01:00:00', … … 115 115 'post_author' => $this->author_id, 116 116 'post_status' => 'publish', 117 'post_content' => rand_str(),117 'post_content' => 'content', 118 118 'post_title' => '', 119 119 'post_name' => '02', … … 134 134 'post_author' => $this->author_id, 135 135 'post_status' => 'publish', 136 'post_content' => rand_str(),136 'post_content' => 'content', 137 137 'post_title' => '', 138 138 'post_name' => '02', … … 151 151 'post_author' => $this->author_id, 152 152 'post_status' => 'publish', 153 'post_content' => rand_str(),153 'post_content' => 'content', 154 154 'post_title' => '', 155 155 'post_name' => '2', … … 170 170 'post_author' => $this->author_id, 171 171 'post_status' => 'publish', 172 'post_content' => rand_str(),172 'post_content' => 'content', 173 173 'post_title' => '', 174 174 'post_name' => '2', … … 187 187 'post_author' => $this->author_id, 188 188 'post_status' => 'publish', 189 'post_content' => rand_str(),189 'post_content' => 'content', 190 190 'post_title' => '02', 191 191 'post_date' => '2015-02-01 01:00:00', … … 205 205 'post_author' => $this->author_id, 206 206 'post_status' => 'publish', 207 'post_content' => rand_str(),207 'post_content' => 'content', 208 208 'post_title' => '02', 209 209 'post_date' => '2015-02-01 01:00:00', … … 221 221 'post_author' => $this->author_id, 222 222 'post_status' => 'publish', 223 'post_content' => rand_str(),223 'post_content' => 'content', 224 224 'post_title' => '2', 225 225 'post_date' => '2015-02-01 01:00:00', … … 239 239 'post_author' => $this->author_id, 240 240 'post_status' => 'publish', 241 'post_content' => rand_str(),241 'post_content' => 'content', 242 242 'post_title' => '2', 243 243 'post_date' => '2015-02-01 01:00:00', … … 255 255 'post_author' => $this->author_id, 256 256 'post_status' => 'publish', 257 'post_content' => rand_str(),257 'post_content' => 'content', 258 258 'post_title' => '', 259 259 'post_name' => '01', … … 274 274 'post_author' => $this->author_id, 275 275 'post_status' => 'publish', 276 'post_content' => rand_str(),276 'post_content' => 'content', 277 277 'post_title' => '', 278 278 'post_name' => '01', … … 291 291 'post_author' => $this->author_id, 292 292 'post_status' => 'publish', 293 'post_content' => rand_str(),293 'post_content' => 'content', 294 294 'post_title' => '01', 295 295 'post_date' => '2015-02-01 01:00:00', … … 309 309 'post_author' => $this->author_id, 310 310 'post_status' => 'publish', 311 'post_content' => rand_str(),311 'post_content' => 'content', 312 312 'post_title' => '01', 313 313 'post_date' => '2015-02-01 01:00:00', … … 325 325 'post_author' => $this->author_id, 326 326 'post_status' => 'publish', 327 'post_content' => rand_str(),327 'post_content' => 'content', 328 328 'post_title' => '01', 329 329 'post_date' => '2015-02-01 01:00:00', -
trunk/tests/phpunit/tests/taxonomy.php
r52010 r52389 18 18 public function test_get_unknown_taxonomies() { 19 19 // Taxonomies for an unknown object type. 20 $this->assertSame( array(), get_object_taxonomies( rand_str()) );20 $this->assertSame( array(), get_object_taxonomies( 'unknown' ) ); 21 21 $this->assertSame( array(), get_object_taxonomies( '' ) ); 22 22 $this->assertSame( array(), get_object_taxonomies( 0 ) ); … … 145 145 146 146 // Make up a new taxonomy name, and ensure it's unused. 147 $tax = rand_str();147 $tax = 'tax_new'; 148 148 $this->assertFalse( taxonomy_exists( $tax ) ); 149 149 … … 159 159 160 160 // Make up a new taxonomy name, and ensure it's unused. 161 $tax = rand_str();161 $tax = 'tax_new'; 162 162 $this->assertFalse( taxonomy_exists( $tax ) ); 163 163 -
trunk/tests/phpunit/tests/term.php
r52010 r52389 52 52 public function test_is_term_type() { 53 53 // Insert a term. 54 $term = rand_str();54 $term = 'term_new'; 55 55 $t = wp_insert_term( $term, $this->taxonomy ); 56 56 $this->assertIsArray( $t ); 57 57 $term_obj = get_term_by( 'name', $term, $this->taxonomy ); 58 $this->assertEquals( $t['term_id'], term_exists( $term_obj->slug ) ); 59 58 59 $exists = term_exists( $term_obj->slug ); 60 60 // Clean up. 61 $this->assertTrue( wp_delete_term( $t['term_id'], $this->taxonomy ) ); 61 $deleted = wp_delete_term( $t['term_id'], $this->taxonomy ); 62 63 $this->assertEquals( $t['term_id'], $exists ); 64 $this->assertTrue( $deleted ); 62 65 } 63 66 -
trunk/tests/phpunit/tests/term/getTermField.php
r52010 r52389 92 92 93 93 public function test_get_term_field_name() { 94 $name = rand_str( 15 );94 $name = 'baz'; 95 95 96 96 $term = self::factory()->term->create_and_get( … … 107 107 108 108 public function test_get_term_field_slug_when_slug_is_set() { 109 $slug = rand_str( 15 );109 $slug = 'baz'; 110 110 111 111 $term = self::factory()->term->create_and_get( … … 122 122 123 123 public function test_get_term_field_slug_when_slug_falls_back_from_name() { 124 $name = rand_str( 15 );124 $name = 'baz'; 125 125 126 126 $term = self::factory()->term->create_and_get( … … 157 157 158 158 public function test_get_term_field_description() { 159 $desc = wpautop( rand_str());159 $desc = wpautop( 'baz' ); 160 160 161 161 $term = self::factory()->term->create_and_get( -
trunk/tests/phpunit/tests/term/splitSharedTerm.php
r51568 r52389 209 209 ); 210 210 211 $menu_id = wp_create_nav_menu( rand_str());211 $menu_id = wp_create_nav_menu( 'Nav Menu Bar' ); 212 212 $cat_menu_item = wp_update_nav_menu_item( 213 213 $menu_id, -
trunk/tests/phpunit/tests/term/termExists.php
r52010 r52389 261 261 262 262 // Insert a term. 263 $term = rand_str();263 $term = __FUNCTION__; 264 264 $t = wp_insert_term( $term, 'wptests_tax' ); 265 265 $this->assertIsArray( $t ); -
trunk/tests/phpunit/tests/term/wpSetObjectTerms.php
r52010 r52389 134 134 135 135 $terms = array( 136 rand_str(),137 rand_str(),138 rand_str(),136 'term0', 137 'term1', 138 'term2', 139 139 ); 140 140 … … 165 165 public function test_set_object_terms_invalid() { 166 166 // Bogus taxonomy. 167 $result = wp_set_object_terms( self::$post_ids[0], array( rand_str() ), rand_str());167 $result = wp_set_object_terms( self::$post_ids[0], array( 'foo' ), 'invalid-taxonomy' ); 168 168 $this->assertWPError( $result ); 169 169 } -
trunk/tests/phpunit/tests/term/wpTaxonomy.php
r51404 r52389 19 19 global $wp; 20 20 21 $taxonomy = rand_str();21 $taxonomy = 'taxonomy1'; 22 22 $taxonomy_object = new WP_Taxonomy( $taxonomy, 'post' ); 23 23 … … 32 32 global $wp; 33 33 34 $taxonomy = rand_str();34 $taxonomy = 'taxonomy2'; 35 35 $taxonomy_object = new WP_Taxonomy( 36 36 $taxonomy, … … 59 59 global $wp_rewrite; 60 60 61 $taxonomy = rand_str();61 $taxonomy = 'taxonomy3'; 62 62 $taxonomy_object = new WP_Taxonomy( 63 63 $taxonomy, … … 80 80 81 81 public function test_adds_ajax_callback() { 82 $taxonomy = rand_str();82 $taxonomy = 'taxonomy4'; 83 83 $taxonomy_object = new WP_Taxonomy( 84 84 $taxonomy, -
trunk/tests/phpunit/tests/theme.php
r52386 r52389 300 300 301 301 // Template file that doesn't exist. 302 $this->assertSame( '', get_query_template( rand_str()) );302 $this->assertSame( '', get_query_template( 'nonexistant' ) ); 303 303 304 304 // Template files that do exist. … … 334 334 public function test_switch_theme_bogus() { 335 335 // Try switching to a theme that doesn't exist. 336 $template = rand_str();337 $style = rand_str();336 $template = 'some_template'; 337 $style = 'some_style'; 338 338 update_option( 'template', $template ); 339 339 update_option( 'stylesheet', $style ); -
trunk/tests/phpunit/tests/user.php
r52352 r52389 105 105 106 106 // Change and get again. 107 $val2 = rand_str();107 $val2 = 'baz'; 108 108 update_user_option( self::$author_id, $key, $val2 ); 109 109 $this->assertSame( $val2, get_user_option( $key, self::$author_id ) ); … … 136 136 update_user_meta( self::$author_id, $key, $val ); 137 137 // Incorrect key: key still exists. 138 delete_user_meta( self::$author_id, $key, rand_str());138 delete_user_meta( self::$author_id, $key, 'foo' ); 139 139 $this->assertSame( $val, get_user_meta( self::$author_id, $key, true ) ); 140 140 // Correct key: deleted. … … 150 150 // Some values to set. 151 151 $vals = array( 152 rand_str() => 'val-' . rand_str(),153 rand_str() => 'val-' . rand_str(),154 rand_str() => 'val-' . rand_str(),152 'key0' => 'val0', 153 'key1' => 'val1', 154 'key2' => 'val2', 155 155 ); 156 156 … … 476 476 'post_author' => self::$author_id, 477 477 'post_status' => 'publish', 478 'post_content' => rand_str(),479 'post_title' => rand_str(),478 'post_content' => 'content', 479 'post_title' => 'title', 480 480 'post_type' => 'post', 481 481 ); … … 637 637 $id1 = wp_insert_user( 638 638 array( 639 'user_login' => rand_str(),639 'user_login' => 'taco_burrito', 640 640 'user_pass' => 'password', 641 641 'user_email' => 'taco@burrito.com', … … 646 646 $id2 = wp_insert_user( 647 647 array( 648 'user_login' => rand_str(),648 'user_login' => 'taco_burrito2', 649 649 'user_pass' => 'password', 650 650 'user_email' => 'taco@burrito.com', … … 827 827 public function test_wp_insert_user_should_not_wipe_existing_password() { 828 828 $user_details = array( 829 'user_login' => rand_str(),829 'user_login' => 'jonsnow', 830 830 'user_pass' => 'password', 831 'user_email' => rand_str() . '@example.com',831 'user_email' => 'jonsnow@example.com', 832 832 ); 833 833 -
trunk/tests/phpunit/tests/user/author.php
r52010 r52389 27 27 'post_author' => self::$author_id, 28 28 'post_status' => 'publish', 29 'post_content' => rand_str(),30 'post_title' => rand_str(),29 'post_content' => 'content', 30 'post_title' => 'title', 31 31 'post_type' => 'post', 32 32 ) -
trunk/tests/phpunit/tests/xmlrpc/wp/editProfile.php
r52010 r52389 17 17 18 18 $new_data = array( 19 'first_name' => rand_str(),20 'last_name' => rand_str(),19 'first_name' => 'firstname', 20 'last_name' => 'lastname', 21 21 'url' => 'http://www.example.org/subscriber', 22 'display_name' => rand_str(),23 'nickname' => rand_str(),24 'nicename' => rand_str(),25 'bio' => rand_str( 200 ),22 'display_name' => 'displayname', 23 'nickname' => 'nickname', 24 'nicename' => 'nicename', 25 'bio' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 26 26 ); 27 27 $result = $this->myxmlrpcserver->wp_editProfile( array( 1, 'subscriber', 'subscriber', $new_data ) ); -
trunk/tests/phpunit/tests/xmlrpc/wp/getComment.php
r52010 r52389 19 19 'comment_author_url' => 'http://example.com/', 20 20 'comment_author_email' => 'example@example.com', 21 'comment_content' => rand_str( 100 ),21 'comment_content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 22 22 ); 23 23 self::$parent_comment_id = wp_insert_comment( self::$parent_comment_data ); … … 29 29 'comment_author_email' => 'example@example.org', 30 30 'comment_parent' => self::$parent_comment_id, 31 'comment_content' => rand_str( 100 ),31 'comment_content' => 'Duis non neque cursus, commodo massa in, bibendum nisl.', 32 32 ); 33 33 self::$child_comment_id = wp_insert_comment( self::$child_comment_data ); -
trunk/tests/phpunit/tests/xmlrpc/wp/getPost.php
r52010 r52389 15 15 $this->post_date_ts = strtotime( '+1 day' ); 16 16 $this->post_data = array( 17 'post_title' => rand_str(),18 'post_content' => rand_str( 2000 ),19 'post_excerpt' => rand_str( 100 ),17 'post_title' => 'Post Title', 18 'post_content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 19 'post_excerpt' => 'Post Excerpt', 20 20 'post_author' => $this->make_user_by_role( 'author' ), 21 21 'post_date' => date_format( date_create( "@{$this->post_date_ts}" ), 'Y-m-d H:i:s' ), -
trunk/tests/phpunit/tests/xmlrpc/wp/newComment.php
r52010 r52389 56 56 self::$posts['publish']->ID, 57 57 array( 58 'content' => rand_str( 100 ),58 'content' => 'Content', 59 59 ), 60 60 ) … … 156 156 $post->ID, 157 157 array( 158 'content' => rand_str( 100 ),158 'content' => 'Content', 159 159 ), 160 160 ) … … 172 172 self::$posts['publish']->ID, 173 173 array( 174 'content' => rand_str( 100 ),174 'content' => 'Content', 175 175 ), 176 176 );
Note: See TracChangeset
for help on using the changeset viewer.