Changeset 35242 for trunk/tests/phpunit/tests/link/getAdjacentPostLink.php
- Timestamp:
- 10/17/2015 06:02:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/link/getAdjacentPostLink.php
r35225 r35242 11 11 public function setUp(){ 12 12 parent::setUp(); 13 $this->cat_id = self:: $factory->category->create( array( 'name' => 'other' ) );13 $this->cat_id = self::factory()->category->create( array( 'name' => 'other' ) ); 14 14 $this->post_ids = array(); 15 $this->post_ids[] = self:: $factory->post->create( array( 'post_type' => 'post', 'post_date' => '2014-10-26 05:32:29', 'category_id' => 1 ) );16 $this->post_ids[] = self:: $factory->post->create( array( 'post_type' => 'post', 'post_date' => '2014-10-26 04:32:29', 'category_id' => $this->cat_id ) );17 $this->post_ids[] = self:: $factory->post->create( array( 'post_type' => 'post', 'post_date' => '2014-10-26 03:32:29', 'category_id' => 1 ) );18 $this->post_ids[] = self:: $factory->post->create( array( 'post_type' => 'post', 'post_date' => '2014-10-26 02:32:29', 'category_id' => $this->cat_id ) );19 $this->post_ids[] = self:: $factory->post->create( array( 'post_type' => 'post', 'post_date' => '2014-10-26 01:32:29', 'category_id' => 1 ) );15 $this->post_ids[] = self::factory()->post->create( array( 'post_type' => 'post', 'post_date' => '2014-10-26 05:32:29', 'category_id' => 1 ) ); 16 $this->post_ids[] = self::factory()->post->create( array( 'post_type' => 'post', 'post_date' => '2014-10-26 04:32:29', 'category_id' => $this->cat_id ) ); 17 $this->post_ids[] = self::factory()->post->create( array( 'post_type' => 'post', 'post_date' => '2014-10-26 03:32:29', 'category_id' => 1 ) ); 18 $this->post_ids[] = self::factory()->post->create( array( 'post_type' => 'post', 'post_date' => '2014-10-26 02:32:29', 'category_id' => $this->cat_id ) ); 19 $this->post_ids[] = self::factory()->post->create( array( 'post_type' => 'post', 'post_date' => '2014-10-26 01:32:29', 'category_id' => 1 ) ); 20 20 21 21 //set current post (has 2 on each end)
Note: See TracChangeset
for help on using the changeset viewer.