|
@@ 250-256 (lines=7) @@
|
| 247 |
|
$this->assertSame('BETWEEN', $found); |
| 248 |
|
} |
| 249 |
|
|
| 250 |
|
public function test_validate_column_post_date() |
| 251 |
|
{ |
| 252 |
|
global $wpdb; |
| 253 |
|
$q = new WP_Date_Query(array()); |
| 254 |
|
|
| 255 |
|
$this->assertSame($wpdb->posts . '.post_date', $q->validate_column('post_date')); |
| 256 |
|
} |
| 257 |
|
|
| 258 |
|
public function test_validate_column_post_date_gmt() |
| 259 |
|
{ |
|
@@ 298-304 (lines=7) @@
|
| 295 |
|
$this->assertSame($wpdb->comments . '.comment_date_gmt', $q->validate_column('comment_date_gmt')); |
| 296 |
|
} |
| 297 |
|
|
| 298 |
|
public function test_validate_column_invalid() |
| 299 |
|
{ |
| 300 |
|
global $wpdb; |
| 301 |
|
$q = new WP_Date_Query(array()); |
| 302 |
|
|
| 303 |
|
$this->assertSame($wpdb->posts . '.post_date', $q->validate_column('foo')); |
| 304 |
|
} |
| 305 |
|
|
| 306 |
|
/** |
| 307 |
|
* @ticket 25775 |