Changeset 7759
- Timestamp:
- 09/30/2026 06:13:50 AM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/topics/functions/update-last-thing.php
r6090 r7759 81 81 ) ); 82 82 83 $r1_time_raw = get_post_field( 'post_date', $r1 ); 84 $r1_time_formatted = bbp_get_time_since( bbp_convert_date( $r1_time_raw ) ); 83 $r1_time_raw = get_post_field( 'post_date', $r1 ); 85 84 86 85 $time = bbp_update_topic_last_active_time( $t, $r1_time_raw ); 87 86 $this->assertSame( $r1_time_raw, $time ); 88 87 89 $t ime = bbp_get_topic_last_active_time( $t);90 $this->assert Same( $r1_time_formatted, $time);88 $this->assertSame( $r1_time_raw, get_post_meta( $t, '_bbp_last_active_time', true ) ); 89 $this->assertNotSame( '', bbp_get_topic_last_active_time( $t ) ); 91 90 92 91 $r2 = $this->factory->reply->create_many( 2, array( … … 98 97 ) ); 99 98 100 $r2_time_raw = get_post_field( 'post_date', $r2[1] ); 101 $r2_time_formatted = bbp_get_time_since( bbp_convert_date( $r2_time_raw ) ); 99 $r2_time_raw = get_post_field( 'post_date', $r2[1] ); 102 100 103 bbp_update_topic_last_active_time( $t ); 104 $time = bbp_get_topic_last_active_time( $t ); 105 $this->assertSame( $r2_time_formatted, $time ); 101 $time = bbp_update_topic_last_active_time( $t ); 102 $this->assertSame( $r2_time_raw, $time ); 103 $this->assertSame( $r2_time_raw, get_post_meta( $t, '_bbp_last_active_time', true ) ); 104 $this->assertNotSame( '', bbp_get_topic_last_active_time( $t ) ); 106 105 } 107 106
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)