Changeset 54088 for trunk/tests/phpunit/tests/widgets/wpWidgetMedia.php
- Timestamp:
- 09/06/2022 10:03:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets/wpWidgetMedia.php
r52248 r54088 117 117 global $wp_customize; 118 118 wp_set_current_user( 119 $this->factory()->user->create(119 self::factory()->user->create( 120 120 array( 121 121 'role' => 'administrator', … … 160 160 $this->assertFalse( $widget->is_attachment_with_mime_type( -123, 'image' ) ); 161 161 162 $post_id = $this->factory()->post->create();162 $post_id = self::factory()->post->create(); 163 163 $this->assertFalse( $widget->is_attachment_with_mime_type( $post_id, 'image' ) ); 164 164 $this->assertFalse( $widget->is_attachment_with_mime_type( $attachment_id, 'video' ) );
Note: See TracChangeset
for help on using the changeset viewer.