Changeset 6859
- Timestamp:
- 09/05/2018 03:56:53 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/common/functions.php
r6855 r6859 791 791 public function test_should_return_true_for_moderators_to_bypass_moderation_check() { 792 792 // Create a moderator user. 793 $old_current_user = 0;794 793 $this->old_current_user = get_current_user_id(); 795 794 $this->set_current_user( $this->factory->user->create( array( 'role' => 'subscriber' ) ) ); … … 989 988 public function test_should_return_false_for_moderators_to_bypass_strict_moderation_check() { 990 989 // Create a moderator user. 991 $old_current_user = 0;992 990 $this->old_current_user = get_current_user_id(); 993 991 $this->set_current_user( $this->factory->user->create( array( 'role' => 'subscriber' ) ) ); … … 1021 1019 public function test_should_return_true_for_keymasterss_to_bypass_strict_moderation_check() { 1022 1020 // Create a keymaster user. 1023 $old_current_user = 0;1024 1021 $this->old_current_user = get_current_user_id(); 1025 1022 $this->set_current_user( $this->factory->user->create( array( 'role' => 'subscriber' ) ) );
Note: See TracChangeset
for help on using the changeset viewer.