Changeset 55264
- Timestamp:
- 02/07/2023 02:58:08 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/searchColumns.php
r55248 r55264 92 92 $this->assertStringContainsString( 'post_excerpt', $q->request, 'SQL request should contain post_excerpt string.' ); 93 93 $this->assertStringContainsString( 'post_content', $q->request, 'SQL request should contain post_content string.' ); 94 $this->assertSame ( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts, 'Query results should be equal to the set.' );94 $this->assertSameSets( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts, 'Query results should be equal to the set.' ); 95 95 } 96 96 … … 109 109 ); 110 110 111 $this->assertSame ( array( self::$pid1 ), $q->posts );111 $this->assertSameSets( array( self::$pid1 ), $q->posts ); 112 112 } 113 113 … … 126 126 ); 127 127 128 $this->assertSame ( array( self::$pid1, self::$pid2 ), $q->posts );128 $this->assertSameSets( array( self::$pid1, self::$pid2 ), $q->posts ); 129 129 } 130 130 … … 142 142 ) 143 143 ); 144 $this->assertSame ( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts );144 $this->assertSameSets( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts ); 145 145 } 146 146 … … 159 159 ); 160 160 161 $this->assertSame ( array( self::$pid1, self::$pid2 ), $q->posts );161 $this->assertSameSets( array( self::$pid1, self::$pid2 ), $q->posts ); 162 162 } 163 163 … … 176 176 ); 177 177 178 $this->assertSame ( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts );178 $this->assertSameSets( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts ); 179 179 } 180 180 … … 193 193 ); 194 194 195 $this->assertSame ( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts );195 $this->assertSameSets( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts ); 196 196 } 197 197 … … 210 210 ); 211 211 212 $this->assertSame ( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts );212 $this->assertSameSets( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts ); 213 213 } 214 214 … … 230 230 $this->assertStringContainsString( 'post_excerpt', $q->request, 'SQL request should contain post_excerpt string.' ); 231 231 $this->assertStringContainsString( 'post_content', $q->request, 'SQL request should contain post_content string.' ); 232 $this->assertSame ( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts, 'Query results should be equal to the set.' );232 $this->assertSameSets( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts, 'Query results should be equal to the set.' ); 233 233 } 234 234 … … 247 247 ); 248 248 249 $this->assertSame ( array( self::$pid1 ), $q->posts );249 $this->assertSameSets( array( self::$pid1 ), $q->posts ); 250 250 } 251 251 … … 264 264 ); 265 265 266 $this->assertSame ( array( self::$pid2, self::$pid3 ), $q->posts );266 $this->assertSameSets( array( self::$pid2, self::$pid3 ), $q->posts ); 267 267 } 268 268 … … 282 282 ); 283 283 284 $this->assertSame ( array( self::$pid3 ), $q->posts );284 $this->assertSameSets( array( self::$pid3 ), $q->posts ); 285 285 } 286 286 … … 300 300 ); 301 301 302 $this->assertSame ( array( self::$pid2, self::$pid3 ), $q->posts );302 $this->assertSameSets( array( self::$pid2, self::$pid3 ), $q->posts ); 303 303 } 304 304 … … 317 317 ); 318 318 319 $this->assertSame ( array( self::$pid2 ), $q->posts );319 $this->assertSameSets( array( self::$pid2 ), $q->posts ); 320 320 } 321 321 … … 334 334 ); 335 335 336 $this->assertSame ( array( self::$pid1 ), $q->posts );336 $this->assertSameSets( array( self::$pid1 ), $q->posts ); 337 337 } 338 338 … … 365 365 366 366 $this->assertStringNotContainsString( 'post_name', $q->request, "SQL request shouldn't contain post_name string." ); 367 $this->assertSame ( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts, 'Query results should be equal to the set.' );367 $this->assertSameSets( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts, 'Query results should be equal to the set.' ); 368 368 } 369 369 … … 396 396 397 397 $this->assertStringNotContainsString( 'post_non_existing_column', $q->request, "SQL request shouldn't contain post_non_existing_column string." ); 398 $this->assertSame ( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts, 'Query results should be equal to the set.' );398 $this->assertSameSets( array( self::$pid1, self::$pid2, self::$pid3 ), $q->posts, 'Query results should be equal to the set.' ); 399 399 } 400 400
Note: See TracChangeset
for help on using the changeset viewer.