Skip to content

Commit

Permalink
Add explanation in readme parser warnings tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Jan 29, 2024
1 parent 9516a2f commit 595cd97
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ public function test_run_with_errors_multiple_parser_warnings_and_empty_ignored_

$this->assertNotEmpty( $warnings );
$this->assertArrayHasKey( 'readme.txt', $warnings );

/*
* Parser warning `contributor_ignored` is ignored by default. When empty array is returned for
* 'wp_plugin_check_ignored_readme_warnings' then that ignored warning is also added in the list of warnings.
*/
$this->assertEquals( 7, $check_result->get_warning_count() );
$this->assertEmpty( $errors );
$this->assertEquals( 0, $check_result->get_error_count() );
Expand Down

0 comments on commit 595cd97

Please sign in to comment.