- Timestamp:
- 02/24/2017 10:33:05 PM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
- Property svn:mergeinfo changed
/trunk merged: 40058,40061,40065-40066,40077,40104
- Property svn:mergeinfo changed
-
branches/4.7/tests/phpunit/tests/rest-api/rest-post-meta-fields.php
r39437 r40116 11 11 */ 12 12 class WP_Test_REST_Post_Meta_Fields extends WP_Test_REST_TestCase { 13 protected static $wp_meta_keys_saved; 13 14 protected static $post_id; 14 15 15 16 public static function wpSetUpBeforeClass( $factory ) { 17 self::$wp_meta_keys_saved = $GLOBALS['wp_meta_keys']; 16 18 self::$post_id = $factory->post->create(); 17 19 } 18 20 19 21 public static function wpTearDownAfterClass() { 22 $GLOBALS['wp_meta_keys'] = self::$wp_meta_keys_saved; 20 23 wp_delete_post( self::$post_id, true ); 21 24 }
Note: See TracChangeset
for help on using the changeset viewer.