Changeset 35242 for trunk/tests/phpunit/tests/user/author.php
- Timestamp:
- 10/17/2015 06:02:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/author.php
r35225 r35242 16 16 parent::setUp(); 17 17 18 $this->author_id = self:: $factory->user->create( array(18 $this->author_id = self::factory()->user->create( array( 19 19 'role' => 'author', 20 20 'user_login' => 'test_author', … … 32 32 33 33 // insert a post and make sure the ID is ok 34 $this->post_id = self:: $factory->post->create( $post );34 $this->post_id = self::factory()->post->create( $post ); 35 35 36 36 setup_postdata( get_post( $this->post_id ) ); … … 91 91 register_post_type( 'wptests_pt' ); 92 92 93 $cpt_ids = self:: $factory->post->create_many( 2, array(93 $cpt_ids = self::factory()->post->create_many( 2, array( 94 94 'post_author' => $this->author_id, 95 95 'post_type' => 'wptests_pt', … … 106 106 */ 107 107 public function test_get_the_author_posts_link_no_permalinks() { 108 $author = self:: $factory->user->create_and_get( array(108 $author = self::factory()->user->create_and_get( array( 109 109 'display_name' => 'Foo', 110 110 'user_nicename' => 'bar' … … 130 130 $this->set_permalink_structure( '/%postname%/' ); 131 131 132 $author = self:: $factory->user->create_and_get( array(132 $author = self::factory()->user->create_and_get( array( 133 133 'display_name' => 'Foo', 134 134 'user_nicename' => 'bar'
Note: See TracChangeset
for help on using the changeset viewer.