How to test wordpress admin content in PHPUnit?
How I can test the html-content of my plugin in wp-admin with PHPUnit tests. I want something like this:
set_current_screen('admin_page_myplugin');
$html = $this-getOriginalHTML();
$this-assertContains('My plugin unique content', $html);
Thanks!
Topic integration-tests Wordpress
Category Web