Changeset 35242 for trunk/tests/phpunit/tests/oembed/discovery.php
- Timestamp:
- 10/17/2015 06:02:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/discovery.php
r35225 r35242 13 13 14 14 function test_add_oembed_discovery_links_to_post() { 15 $post_id = self:: $factory->post->create();15 $post_id = self::factory()->post->create(); 16 16 $this->go_to( get_permalink( $post_id ) ); 17 17 … … 29 29 30 30 function test_add_oembed_discovery_links_to_page() { 31 $post_id = self:: $factory->post->create( array(31 $post_id = self::factory()->post->create( array( 32 32 'post_type' => 'page' 33 33 )); … … 47 47 48 48 function test_add_oembed_discovery_links_to_attachment() { 49 $post_id = self:: $factory->post->create();49 $post_id = self::factory()->post->create(); 50 50 $file = DIR_TESTDATA . '/images/canola.jpg'; 51 $attachment_id = self:: $factory->attachment->create_object( $file, $post_id, array(51 $attachment_id = self::factory()->attachment->create_object( $file, $post_id, array( 52 52 'post_mime_type' => 'image/jpeg', 53 53 ) );
Note: See TracChangeset
for help on using the changeset viewer.