Exemplo n.º 1
0
 /**
  * Change to admin page
  */
 public function setUp()
 {
     parent::setUp();
     //Add admin user to test caps
     // We need to change user to verify editing option as admin or editor
     $administrator_id = $this->factory->user->create(array('role' => 'administrator', 'user_login' => 'test_admin', 'email' => '*****@*****.**'));
     wp_set_current_user($administrator_id);
     //Load the class manually like if we were in the admin
     call_user_func(array(self::CLASSNAME, 'load'));
 }
Exemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     $this->admin = $this->plugin->admin;
     $this->assertNotEmpty($this->admin);
     //Add admin user to test caps
     // We need to change user to verify editing option as admin or editor
     $administrator_id = $this->factory->user->create(array('role' => 'administrator', 'user_login' => 'test_admin', 'email' => '*****@*****.**'));
     wp_set_current_user($administrator_id);
 }
Exemplo n.º 3
0
 public function setUp()
 {
     parent::setUp();
     $this->db = $this->plugin->db;
     $this->assertNotEmpty($this->db);
 }
 public function setUp()
 {
     parent::setUp();
     $this->date_interval = new Date_Interval();
     $this->assertNotEmpty($this->date_interval);
 }
 public function setUp()
 {
     parent::setUp();
     $this->connector = new Connector_Maintenance();
     $this->assertNotEmpty($this->connector);
 }
 public function setUp()
 {
     parent::setUp();
     $this->filter = new Filter_Input();
     $this->assertNotEmpty($this->filter);
 }
Exemplo n.º 7
0
 public function setUp()
 {
     parent::setUp();
     $this->connectors = $this->plugin->connectors;
     $this->assertNotEmpty($this->connectors);
 }