Changeset 46428 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 10/07/2019 10:17:22 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r46426 r46428 1431 1431 self::assertEquals( strtotime( gmdate( 'Y-m-d H:i:s' ) ), strtotime( $post->post_date_gmt ), 'The dates should be equal', 2 ); 1432 1432 } 1433 1434 /**1435 * @ticket 480141436 */1437 public function test_updated_post_should_not_duplicate_enclosure_meta_fields() {1438 $post_id = self::factory()->post->create();1439 1440 $encloseme_before = get_post_meta( $post_id, '_encloseme' );1441 $pingme_before = get_post_meta( $post_id, '_pingme' );1442 1443 $updated = wp_update_post( get_post( $post_id ), true );1444 1445 $encloseme_after = get_post_meta( $post_id, '_encloseme' );1446 $pingme_after = get_post_meta( $post_id, '_pingme' );1447 1448 $this->assertSame( $post_id, $updated );1449 1450 $this->assertCount( 1, $encloseme_before );1451 $this->assertCount( 1, $encloseme_after );1452 1453 $this->assertCount( 1, $pingme_before );1454 $this->assertCount( 1, $pingme_after );1455 }1456 1433 }
Note: See TracChangeset
for help on using the changeset viewer.