Skip to content

Commit

Permalink
Improve failed test message
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Oct 10, 2024
1 parent e36634f commit defc308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit/tests/html-api/wpHtmlProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ public function test_set_inner_html_not_allowed( string $html, string $replaceme
break;
}
}
$this->assertFalse( $processor->set_inner_html( $replacement ) );
$this->assertFalse( $processor->set_inner_html( $replacement ), "Should have failed but produced: {$processor->get_updated_html()}" );
$this->assertSame( $html, $processor->get_updated_html() );
}

Expand Down

0 comments on commit defc308

Please sign in to comment.