Changeset 8789
- Timestamp:
- 08/11/2014 04:36:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/activity/class.BP_Activity_Activity.php
r8787 r8789 148 148 * @group date_query 149 149 */ 150 public function test_get_with_date_query () {150 public function test_get_with_date_query_before() { 151 151 if ( ! class_exists( 'WP_Date_Query' ) ) { 152 152 return; … … 172 172 ) ); 173 173 $this->assertEquals( array( $a2 ), wp_list_pluck( $query['activities'], 'id' ) ); 174 } 175 176 /** 177 * @group get 178 * @group date_query 179 */ 180 public function test_get_with_date_query_range() { 181 if ( ! class_exists( 'WP_Date_Query' ) ) { 182 return; 183 } 184 185 $a1 = $this->factory->activity->create(); 186 $a2 = $this->factory->activity->create( array( 187 'recorded_time' => '2001-01-01 12:00' 188 ) ); 189 $a3 = $this->factory->activity->create( array( 190 'recorded_time' => '2005-01-01 12:00' 191 ) ); 174 192 175 193 // 'date_query' range test … … 186 204 ) ); 187 205 $this->assertEquals( array( $a3 ), wp_list_pluck( $query['activities'], 'id' ) ); 206 } 207 208 /** 209 * @group get 210 * @group date_query 211 */ 212 public function test_get_with_date_query_after() { 213 if ( ! class_exists( 'WP_Date_Query' ) ) { 214 return; 215 } 216 217 $a1 = $this->factory->activity->create(); 218 $a2 = $this->factory->activity->create( array( 219 'recorded_time' => '2001-01-01 12:00' 220 ) ); 221 $a3 = $this->factory->activity->create( array( 222 'recorded_time' => '2005-01-01 12:00' 223 ) ); 188 224 189 225 // 'date_query' after and relative test
Note: See TracChangeset
for help on using the changeset viewer.