setup test for user support
This commit is contained in:
parent
aac62df69d
commit
f0caa21bab
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue