Changeset 6090
- Timestamp:
- 09/07/2016 04:48:44 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/topics/functions/update-last-thing.php
r6088 r6090 47 47 $this->assertSame( $r2, $last_active_id ); 48 48 49 $r3 = $this->factory->reply->create( array(50 'post_parent' => $t,51 'reply_meta' => array(52 'forum_id' => $f,53 'topic_id' => $t,54 ),55 ) );56 57 // Pass the reply id to bbp_update_topic_last_active_id().58 bbp_update_topic_last_active_id( $r3 );59 $last_active_id = bbp_get_topic_last_active_id( $t );60 $this->assertSame( $r3, $last_active_id );61 62 49 // Create a couple of replies. 63 $r 4= $this->factory->reply->create_many( 2, array(50 $r3 = $this->factory->reply->create_many( 2, array( 64 51 'post_parent' => $t, 65 52 'reply_meta' => array( … … 70 57 71 58 // Pass both the topic id and reply id of the array. 72 bbp_update_topic_last_active_id( $t, $r 4[1] );59 bbp_update_topic_last_active_id( $t, $r3[1] ); 73 60 $last_active_id = bbp_get_topic_last_active_id( $t ); 74 $this->assertSame( $r 4[1], $last_active_id );61 $this->assertSame( $r3[1], $last_active_id ); 75 62 } 76 63
Note: See TracChangeset
for help on using the changeset viewer.