Changeset 49005 for trunk/tests/phpunit/tests/post/slashes.php
- Timestamp:
- 09/19/2020 11:11:00 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/slashes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/slashes.php
r49004 r49005 8 8 class Tests_Post_Slashes extends WP_UnitTestCase { 9 9 protected static $author_id; 10 protected static $post_id; 10 11 11 12 public static function wpSetUpBeforeClass( $factory ) { 12 13 self::$author_id = $factory->user->create( array( 'role' => 'editor' ) ); 14 self::$post_id = $factory->post->create(); 13 15 } 14 16 … … 33 35 */ 34 36 function test_edit_post() { 35 $post_id = self:: factory()->post->create();37 $post_id = self::$post_id; 36 38 37 39 $_POST = array(); … … 106 108 */ 107 109 function test_wp_update_post() { 108 $post_id = self:: factory()->post->create();110 $post_id = self::$post_id; 109 111 110 112 wp_update_post(
Note: See TracChangeset
for help on using the changeset viewer.