setup test for user support

This commit is contained in:
Jacson Passold 2018-01-03 17:38:00 -02:00
parent aac62df69d
commit f0caa21bab
1 changed files with 3 additions and 0 deletions

View File

@ -14,5 +14,8 @@ class TAINACAN_UnitTestCase extends \WP_UnitTestCase {
$this->tainacan_entity_factory = new Factories\Entity_Factory();
$this->tainacan_field_factory = new Factories\Field_Factory();
$this->tainacan_filter_factory = new Factories\Filter_Factory();
$new_admin_user = $this->factory()->user->create(array( 'role' => 'administrator' ));
wp_set_current_user($new_admin_user);
}
}