Skip to:
Content

bbPress.org

Changeset 6859


Ignore:
Timestamp:
09/05/2018 03:56:53 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Tests: Remove unused variables from a few tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/common/functions.php

    r6855 r6859  
    791791    public function test_should_return_true_for_moderators_to_bypass_moderation_check() {
    792792        // Create a moderator user.
    793         $old_current_user = 0;
    794793        $this->old_current_user = get_current_user_id();
    795794        $this->set_current_user( $this->factory->user->create( array( 'role' => 'subscriber' ) ) );
     
    989988    public function test_should_return_false_for_moderators_to_bypass_strict_moderation_check() {
    990989        // Create a moderator user.
    991         $old_current_user = 0;
    992990        $this->old_current_user = get_current_user_id();
    993991        $this->set_current_user( $this->factory->user->create( array( 'role' => 'subscriber' ) ) );
     
    10211019    public function test_should_return_true_for_keymasterss_to_bypass_strict_moderation_check() {
    10221020        // Create a keymaster user.
    1023         $old_current_user = 0;
    10241021        $this->old_current_user = get_current_user_id();
    10251022        $this->set_current_user( $this->factory->user->create( array( 'role' => 'subscriber' ) ) );
Note: See TracChangeset for help on using the changeset viewer.