Skip to content

Commit

Permalink
Update so that current user is admin
Browse files Browse the repository at this point in the history
  • Loading branch information
samwilson committed Jul 5, 2018
1 parent d614067 commit 1ba96bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,4 +4,5 @@
/svn_ignore_list.txt
/docs/_build/
/.idea/
/phpunit.xml

3 changes: 2 additions & 1 deletion tests/TestBase.php
Expand Up @@ -48,7 +48,8 @@ public function setUp() {
} else {
$tester_id = $tester->ID;
}
wp_set_current_user( $tester_id );
$current_user = wp_set_current_user( $tester_id );
$current_user->add_cap( 'promote_users' );

// Get the database.
$this->wpdb = $wpdb;
Expand Down

0 comments on commit 1ba96bc

Please sign in to comment.