Example #1
0
 /**
  * Render OAuth section callback
  */
 function test_render_oauth_section_callback()
 {
     ob_start();
     $this->admin->render_oauth_section_callback();
     $contents = ob_get_clean();
     $this->assertContains('<a href="https://build.envato.com/create-token/?purchase:download=t&purchase:verify=t&purchase:list=t" target="_blank">generate a personal token</a>', $contents);
 }