Skip to content

Commit

Permalink
Test admin notice render
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-mendonca committed Jul 15, 2024
1 parent d9cf660 commit 5191172
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/phpunit/includes/test-admin-notice.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,4 +379,21 @@ public function test_sanitize_wrap( $wrap, $expected_result ) {
$this->assertSame( $admin_notice->wrap, $expected_result );

}

/**
* Test admin notice render.
*/
public function test_render() {

$this->expectOutputString( '<div class="notice inline"><p></p></div><div class="notice inline"><p></p></div>' );

$args = array(
'force_show' => true,
);

$admin_notice = new Admin_Notice( $args );

$admin_notice->render();

}
}

0 comments on commit 5191172

Please sign in to comment.