Changeset 35225 for trunk/tests/phpunit/tests/meta.php
- Timestamp:
- 10/16/2015 09:04:12 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/meta.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/meta.php
r30702 r35225 9 9 function setUp() { 10 10 parent::setUp(); 11 $this->author = new WP_User( $this->factory->user->create( array( 'role' => 'author' ) ) );11 $this->author = new WP_User( self::$factory->user->create( array( 'role' => 'author' ) ) ); 12 12 $this->meta_id = add_metadata( 'user', $this->author->ID, 'meta_key', 'meta_value' ); 13 13 $this->delete_meta_id = add_metadata( 'user', $this->author->ID, 'delete_meta_key', 'delete_meta_value' ); … … 195 195 */ 196 196 function test_meta_type_cast() { 197 $post_id1 = $this->factory->post->create();197 $post_id1 = self::$factory->post->create(); 198 198 add_post_meta( $post_id1, 'num_as_longtext', 123 ); 199 199 add_post_meta( $post_id1, 'num_as_longtext_desc', 10 ); 200 $post_id2 = $this->factory->post->create();200 $post_id2 = self::$factory->post->create(); 201 201 add_post_meta( $post_id2, 'num_as_longtext', 99 ); 202 202 add_post_meta( $post_id2, 'num_as_longtext_desc', 100 ); … … 259 259 260 260 function test_meta_cache_order_asc() { 261 $post_id = $this->factory->post->create();261 $post_id = self::$factory->post->create(); 262 262 $colors = array( 'red', 'blue', 'yellow', 'green' ); 263 263 foreach ( $colors as $color )
Note: See TracChangeset
for help on using the changeset viewer.