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

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.