- Timestamp:
- 10/16/2015 09:04:12 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/link/getPostCommentsFeedLink.php
r34810 r35225 6 6 7 7 public function test_post_link() { 8 $post_id = $this->factory->post->create();8 $post_id = self::$factory->post->create(); 9 9 10 10 $link = get_post_comments_feed_link( $post_id ); … … 20 20 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 21 21 22 $post_id = $this->factory->post->create();22 $post_id = self::$factory->post->create(); 23 23 24 24 $link = get_post_comments_feed_link( $post_id ); … … 29 29 30 30 public function test_attachment_link() { 31 $post_id = $this->factory->post->create();32 $attachment_id = $this->factory->attachment->create_object( 'image.jpg', $post_id, array(31 $post_id = self::$factory->post->create(); 32 $attachment_id = self::$factory->attachment->create_object( 'image.jpg', $post_id, array( 33 33 'post_mime_type' => 'image/jpeg', 34 34 'post_type' => 'attachment' … … 47 47 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 48 48 49 $post_id = $this->factory->post->create( array(49 $post_id = self::$factory->post->create( array( 50 50 'post_status' => 'publish' 51 51 ) ); 52 $attachment_id = $this->factory->attachment->create_object( 'image.jpg', $post_id, array(52 $attachment_id = self::$factory->attachment->create_object( 'image.jpg', $post_id, array( 53 53 'post_mime_type' => 'image/jpeg', 54 54 'post_type' => 'attachment', … … 67 67 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 68 68 69 $post_id = $this->factory->post->create();70 $attachment_id = $this->factory->attachment->create_object( 'image.jpg', $post_id, array(69 $post_id = self::$factory->post->create(); 70 $attachment_id = self::$factory->attachment->create_object( 'image.jpg', $post_id, array( 71 71 'post_mime_type' => 'image/jpeg', 72 72 'post_type' => 'attachment' … … 80 80 81 81 public function test_unattached_link() { 82 $attachment_id = $this->factory->attachment->create_object( 'image.jpg', 0, array(82 $attachment_id = self::$factory->attachment->create_object( 'image.jpg', 0, array( 83 83 'post_mime_type' => 'image/jpeg', 84 84 'post_type' => 'attachment' … … 97 97 $this->set_permalink_structure( '/%year%/%monthnum%/%day%/%postname%/' ); 98 98 99 $attachment_id = $this->factory->attachment->create_object( 'image.jpg', 0, array(99 $attachment_id = self::$factory->attachment->create_object( 'image.jpg', 0, array( 100 100 'post_mime_type' => 'image/jpeg', 101 101 'post_type' => 'attachment'
Note: See TracChangeset
for help on using the changeset viewer.