Changeset 35242 for trunk/tests/phpunit/tests/post/slashes.php
- Timestamp:
- 10/17/2015 06:02:16 PM (11 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
r35225 r35242 9 9 function setUp() { 10 10 parent::setUp(); 11 $this->author_id = self:: $factory->user->create( array( 'role' => 'editor' ) );11 $this->author_id = self::factory()->user->create( array( 'role' => 'editor' ) ); 12 12 $this->old_current_user = get_current_user_id(); 13 13 wp_set_current_user( $this->author_id ); … … 34 34 */ 35 35 function test_edit_post() { 36 $id = self:: $factory->post->create();36 $id = self::factory()->post->create(); 37 37 38 38 $_POST = array(); … … 103 103 */ 104 104 function test_wp_update_post() { 105 $id = self:: $factory->post->create();105 $id = self::factory()->post->create(); 106 106 107 107 wp_update_post(array(
Note: See TracChangeset
for help on using the changeset viewer.