Changeset 60253 for trunk/tests/phpunit/tests/oembed/wpOembed.php
- Timestamp:
- 05/26/2025 02:34:12 PM (9 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/oembed/wpOembed.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/wpOembed.php
r51568 r60253 12 12 public $pre_oembed_result_filtered = false; 13 13 14 /** 15 * ID of the user. 16 * 17 * @var int 18 */ 19 public static $user_id; 20 21 /** 22 * Set up the shared fixture. 23 * 24 * @param WP_UnitTest_Factory $factory Factory instance. 25 */ 26 public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { 27 self::$user_id = $factory->user->create(); 28 } 29 14 30 public function set_up() { 15 31 parent::set_up(); … … 97 113 */ 98 114 public function test_wp_filter_pre_oembed_result_multisite_sub_samesub() { 99 $user_id = self:: factory()->user->create();115 $user_id = self::$user_id; 100 116 101 117 $blog_id = self::factory()->blog->create( … … 126 142 */ 127 143 public function test_wp_filter_pre_oembed_result_multisite_sub_othersub() { 128 $user_id = self:: factory()->user->create();144 $user_id = self::$user_id; 129 145 130 146 $blog_id = self::factory()->blog->create( … … 165 181 $post_id = self::factory()->post->create(); 166 182 $permalink = get_permalink( $post_id ); 167 $user_id = self:: factory()->user->create();183 $user_id = self::$user_id; 168 184 $blog_id = self::factory()->blog->create( 169 185 array( … … 190 206 */ 191 207 public function test_wp_filter_pre_oembed_result_multisite_preserves_switched_state() { 192 $user_id = self:: factory()->user->create();208 $user_id = self::$user_id; 193 209 194 210 $blog_id = self::factory()->blog->create( array( 'user_id' => $user_id ) ); … … 221 237 $current_blog_id = get_current_blog_id(); 222 238 223 $user_id = self:: factory()->user->create();239 $user_id = self::$user_id; 224 240 $blog_id = self::factory()->blog->create( 225 241 array(
Note: See TracChangeset
for help on using the changeset viewer.