function testCreateNonce()
 {
     $this->m->_create_nonce();
     $result = _get_nonce('plugin-wonderful');
     $this->assertTrue(!empty($result));
     $this->assertEquals($result, $this->m->_pw_nonce);
 }
 /**
  * @dataProvider providerTestUpdateOptions
  */
 function testUpdateOptions($post, $result)
 {
     $_POST = $post;
     if (isset($_POST['hubblesite']['_wpnonce'])) {
         $_POST['hubblesite']['_wpnonce'] = _get_nonce('hubble');
     }
     $this->diw->handle_post();
     $this->diw->get_display_options();
     $this->assertEquals($result, $this->diw->display_options);
 }