function setUp() { parent::setUp(); $this->admin = $this->factory->user->create_and_get(array('role' => 'administrator')); $this->editor = $this->factory->user->create_and_get(array('role' => 'editor')); $this->author = $this->factory->user->create_and_get(array('role' => 'author')); $this->contributor = $this->factory->user->create_and_get(array('role' => 'contributor')); $this->subscriber = $this->factory->user->create_and_get(array('role' => 'subscriber')); $this->no_role = $this->factory->user->create_and_get(array('role' => '')); $this->translator = $this->factory->user->create_and_get(array('role' => 'translator')); if (is_multisite()) { $this->super = $this->factory->user->create_and_get(array('role' => 'administrator')); grant_super_admin($this->super->ID); } }
public function setUp() { $this->install_languages(); parent::setUp(); }
public function setUp() { parent::install_languages(); parent::setUp(); }