Skip to content

Commit

Permalink
Remove duplicate assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshpanchal27 committed Sep 25, 2023
1 parent 32b69c2 commit c723ec8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/phpunit/Checker/Checks/Plugin_Readme_Check_Tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ public function test_run_with_errors_stable_tag() {
$this->assertEquals( 'trunk_stable_tag', $errors['readme.txt'][0][0][0]['code'] );

// Check for stable tag mismatch file error.
$this->assertArrayHasKey( 0, $errors['readme.txt'] );
$this->assertArrayHasKey( 0, $errors['readme.txt'][0] );
$this->assertArrayHasKey( 'code', $errors['readme.txt'][0][0][1] );
$this->assertEquals( 'stable_tag_mismatch', $errors['readme.txt'][0][0][1]['code'] );
}
Expand Down Expand Up @@ -154,8 +152,6 @@ public function test_run_md_with_errors() {
$this->assertEquals( 'default_readme_text', $warnings['readme.md'][0][0][0]['code'] );

// Check for invalid license warning.
$this->assertArrayHasKey( 0, $warnings['readme.md'] );
$this->assertArrayHasKey( 0, $warnings['readme.md'][0] );
$this->assertArrayHasKey( 'code', $warnings['readme.md'][0][0][1] );
$this->assertEquals( 'invalid_license', $warnings['readme.md'][0][0][1]['code'] );

Expand All @@ -166,8 +162,6 @@ public function test_run_md_with_errors() {
$this->assertEquals( 'trunk_stable_tag', $errors['readme.md'][0][0][0]['code'] );

// Check for stable tag mismatch file error.
$this->assertArrayHasKey( 0, $errors['readme.md'] );
$this->assertArrayHasKey( 0, $errors['readme.md'][0] );
$this->assertArrayHasKey( 'code', $errors['readme.md'][0][0][1] );
$this->assertEquals( 'stable_tag_mismatch', $errors['readme.md'][0][0][1]['code'] );
}
Expand Down

0 comments on commit c723ec8

Please sign in to comment.