| @@ 202-209 (lines=8) @@ | ||
| 199 | $this->assertSame('<=', $found); |
|
| 200 | } |
|
| 201 | ||
| 202 | public function test_get_compare_in() |
|
| 203 | { |
|
| 204 | $q = new WP_Date_Query(array()); |
|
| 205 | ||
| 206 | $found = $q->get_compare( |
|
| 207 | array( |
|
| 208 | 'compare' => 'IN', |
|
| 209 | ) |
|
| 210 | ); |
|
| 211 | $this->assertSame('IN', $found); |
|
| 212 | } |
|
| @@ 226-233 (lines=8) @@ | ||
| 223 | $this->assertSame('NOT IN', $found); |
|
| 224 | } |
|
| 225 | ||
| 226 | public function test_get_compare_between() |
|
| 227 | { |
|
| 228 | $q = new WP_Date_Query(array()); |
|
| 229 | ||
| 230 | $found = $q->get_compare( |
|
| 231 | array( |
|
| 232 | 'compare' => 'BETWEEN', |
|
| 233 | ) |
|
| 234 | ); |
|
| 235 | $this->assertSame('BETWEEN', $found); |
|
| 236 | } |
|
| @@ 238-245 (lines=8) @@ | ||
| 235 | $this->assertSame('BETWEEN', $found); |
|
| 236 | } |
|
| 237 | ||
| 238 | public function test_get_compare_not_between() |
|
| 239 | { |
|
| 240 | $q = new WP_Date_Query(array()); |
|
| 241 | ||
| 242 | $found = $q->get_compare( |
|
| 243 | array( |
|
| 244 | 'compare' => 'BETWEEN', |
|
| 245 | ) |
|
| 246 | ); |
|
| 247 | $this->assertSame('BETWEEN', $found); |
|
| 248 | } |
|