Skip to:
Content

bbPress.org

Changeset 5955


Ignore:
Timestamp:
11/25/2015 08:05:41 AM (9 years ago)
Author:
netweb
Message:

Tests: Fix failing BBP_Tests_Topics_Functions_Update_Topic_Last_Thing tests

  • Pass the active id as the 2nd parameter to bbp_update_topic_last_active_id() in test_bbp_update_topic_last_active_id()
  • Pass the reply id as the 2nd parameter to bbp_update_topic_last_reply_id() in test_bbp_update_topic_last_reply_id()

This fixes the current two failing unit tests by passing what should be optional paremeters to their respceptive functions.

See #1799, [5954]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/topics/functions/update-last-thing.php

    r5917 r5955  
    4343        ) );
    4444
    45         bbp_update_topic_last_active_id( $t );
     45        bbp_update_topic_last_active_id( $t, $r2[1] );
    4646        $id = bbp_get_topic_last_active_id( $t );
    4747        $this->assertSame( $r2[1], $id );
     
    125125        ) );
    126126
    127         bbp_update_topic_last_reply_id( $t );
     127        bbp_update_topic_last_reply_id( $t, $r2[1] );
    128128        $id = bbp_get_topic_last_reply_id( $t );
    129129        $this->assertSame( $r2[1], $id );
Note: See TracChangeset for help on using the changeset viewer.