Changeset 51403 for trunk/tests/phpunit/tests/post/attachments.php
- Timestamp:
- 07/11/2021 12:41:48 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/attachments.php
r49024 r51403 19 19 20 20 $upload = wp_upload_bits( $filename, null, $contents ); 21 $this->assert True( empty( $upload['error'] ));21 $this->assertEmpty( $upload['error'] ); 22 22 } 23 23 … … 29 29 30 30 $upload = wp_upload_bits( wp_basename( $filename ), null, $contents ); 31 $this->assert True( empty( $upload['error'] ));31 $this->assertEmpty( $upload['error'] ); 32 32 33 33 $id = $this->_make_attachment( $upload ); … … 66 66 67 67 $upload = wp_upload_bits( wp_basename( $filename ), null, $contents ); 68 $this->assert True( empty( $upload['error'] ));68 $this->assertEmpty( $upload['error'] ); 69 69 70 70 $id = $this->_make_attachment( $upload ); … … 120 120 121 121 $upload = wp_upload_bits( wp_basename( $filename ), null, $contents ); 122 $this->assert True( empty( $upload['error'] ));122 $this->assertEmpty( $upload['error'] ); 123 123 124 124 $id = $this->_make_attachment( $upload ); … … 177 177 178 178 $upload = wp_upload_bits( wp_basename( $filename ), null, $contents ); 179 $this->assert True( empty( $upload['error'] ));179 $this->assertEmpty( $upload['error'] ); 180 180 181 181 $id = $this->_make_attachment( $upload ); … … 220 220 221 221 $upload = wp_upload_bits( wp_basename( $filename ), null, $contents ); 222 $this->assert True( empty( $upload['error'] ));222 $this->assertEmpty( $upload['error'] ); 223 223 224 224 $upload['url'] = ''; … … 226 226 227 227 $guid = get_the_guid( $id ); 228 $this->assert False( empty( $guid ));228 $this->assertNotEmpty( $guid ); 229 229 } 230 230 … … 237 237 238 238 $upload = wp_upload_bits( wp_basename( $filename ), null, $contents ); 239 $this->assert True( empty( $upload['error'] ));239 $this->assertEmpty( $upload['error'] ); 240 240 241 241 $id = $this->_make_attachment( $upload ); … … 263 263 264 264 $upload = wp_upload_bits( wp_basename( $filename ), null, $contents ); 265 $this->assert True( empty( $upload['error'] ));265 $this->assertEmpty( $upload['error'] ); 266 266 267 267 $attachment_id = $this->_make_attachment( $upload ); … … 295 295 296 296 $upload = wp_upload_bits( wp_basename( $filename ), null, $contents ); 297 $this->assert True( empty( $upload['error'] ));297 $this->assertEmpty( $upload['error'] ); 298 298 299 299 // Set attachment ID. … … 320 320 321 321 $upload = wp_upload_bits( wp_basename( $filename ), null, $contents ); 322 $this->assert True( empty( $upload['error'] ));322 $this->assertEmpty( $upload['error'] ); 323 323 324 324 // Set attachment ID. … … 345 345 346 346 $upload = wp_upload_bits( wp_basename( $filename ), null, $contents ); 347 $this->assert True( empty( $upload['error'] ));347 $this->assertEmpty( $upload['error'] ); 348 348 349 349 // Set attachment ID. … … 373 373 374 374 $upload = wp_upload_bits( wp_basename( $filename ), null, $contents ); 375 $this->assert True( empty( $upload['error'] ));375 $this->assertEmpty( $upload['error'] ); 376 376 377 377 // Set attachment ID. … … 401 401 402 402 $upload = wp_upload_bits( wp_basename( $filename ), null, $contents ); 403 $this->assert True( empty( $upload['error'] ));403 $this->assertEmpty( $upload['error'] ); 404 404 405 405 // Set attachment ID. … … 428 428 429 429 $upload = wp_upload_bits( wp_basename( $filename ), null, $contents ); 430 $this->assert True( empty( $upload['error'] ));430 $this->assertEmpty( $upload['error'] ); 431 431 432 432 // Set attachment ID.
Note: See TracChangeset
for help on using the changeset viewer.